2 * ADF Library. (C) 1997-1999 Laurent Clevy
13 #include <sys/types.h>
16 #define ADFLIB_VERSION "0.8.0"
17 #define ADFLIB_DATE "10 September, 2012"
27 #define UQUAD uint64_t
28 #define ULONG uint32_t
29 #define USHORT uint16_t
37 /* defines max and min */
40 #define max(a,b) (a)>(b) ? (a) : (b)
43 #define min(a,b) (a)<(b) ? (a) : (b)
47 /* (*byte) to (*short) and (*byte) to (*long) conversion */
49 #define Short(p) ((p)[0]<<8 | (p)[1])
50 #define Long(p) (Short(p)<<16 | Short(p+2))
53 /* swap short and swap long macros for little endian machines */
55 #define swapShort(p) ((p)[0]<<8 | (p)[1])
56 #define swapLong(p) (swapShort(p)<<16 | swapShort(p+2))
59 #define PREFIX __declspec(dllexport)
64 #endif /* _ADF_DEFS_H */
65 /*##########################################################################*/