2 * ADF Library. (C) 1997-1999 Laurent Clevy
13 #define ADFLIB_VERSION "0.7.9b"
14 #define ADFLIB_DATE "10 september, 2000"
26 #define ULONG unsigned long
27 #define USHORT unsigned short
28 #define UCHAR unsigned char
32 /* defines max and min */
35 #define max(a,b) (a)>(b) ? (a) : (b)
38 #define min(a,b) (a)<(b) ? (a) : (b)
42 /* (*byte) to (*short) and (*byte) to (*long) conversion */
44 #define Short(p) ((p)[0]<<8 | (p)[1])
45 #define Long(p) (Short(p)<<16 | Short(p+2))
48 /* swap short and swap long macros for little endian machines */
50 #define swapShort(p) ((p)[0]<<8 | (p)[1])
51 #define swapLong(p) (swapShort(p)<<16 | swapShort(p+2))
55 #endif /* _ADF_DEFS_H */
56 /*##########################################################################*/