Back to index

tetex-bin  3.0
types.h
Go to the documentation of this file.
00001 /*
00002  * File:    types.h
00003  * Purpose: define basic types so that program is portable to non 32 bits
00004  *          platforms
00005  * Version: 1.0 (Dec. 1993)
00006  * Author:  Piet Tutelaers
00007  */
00008 
00009 #ifndef __PS2PK_TYPES__
00010 #define __PS2PK_TYPES__
00011 
00012 #ifdef KPATHSEA
00013 #include <kpathsea/kpathsea.h>
00014 #include <c-auto.h>
00015 #endif /* KPATHSEA */
00016 
00017 #if defined(WORD16)
00018 typedef unsigned short USHORT; /* 16 bits */
00019 typedef short SHORT;           /* 16 bits */
00020 typedef long LONG;             /* 32 bits */
00021 typedef unsigned long ULONG;   /* 32 bits */
00022 typedef double DOUBLE;         /* 64 bits */
00023 #elif defined(WORD64)
00024 typedef unsigned short USHORT; /* 16 bits */
00025 typedef short SHORT;           /* 16 bits */
00026 typedef int LONG;              /* 32 bits */
00027 typedef unsigned long ULONG;   /* 32 bits */
00028 typedef double DOUBLE;         /* 64 bits */
00029 #else /* default: WORD32 */
00030 typedef unsigned short USHORT; /* 16 bits */
00031 typedef short SHORT;           /* 16 bits */
00032 #  ifndef WIN32
00033 /* These are already defined under WIN32 */
00034 typedef int LONG;              /* 32 bits */
00035 typedef unsigned int ULONG;    /* 32 bits */
00036 #  endif
00037 typedef double DOUBLE;         /* 64 bits */
00038 #endif
00039 
00040 #endif /* __PS2PK_TYPES__ */