Added support for a new config option, "includename". This value defaults
[AROS.git] / tools / adflib / adf_defs.h
blob77cb0669f4e7e34a8c224fe4a9519118ccdd5c8e
1 /*
2 * ADF Library. (C) 1997-1999 Laurent Clevy
4 * adf_defs.h
6 *
7 */
10 #ifndef _ADF_DEFS_H
11 #define _ADF_DEFS_H 1
13 #include <sys/types.h>
14 #include <stdint.h>
16 #define ADFLIB_VERSION "0.8.0"
17 #define ADFLIB_DATE "10 September, 2012"
19 #ifndef TRUE
20 #define TRUE 1
21 #endif
22 #ifndef FALSE
23 #define FALSE 0
24 #endif
26 #define BOOL int
27 #define UQUAD uint64_t
28 #define ULONG uint32_t
29 #define USHORT uint16_t
30 #define UCHAR uint8_t
31 #define UBYTE uint8_t
32 #define TEXT char
34 #define SECTNUM ULONG
35 #define RETCODE long
37 /* defines max and min */
39 #ifndef max
40 #define max(a,b) (a)>(b) ? (a) : (b)
41 #endif
42 #ifndef min
43 #define min(a,b) (a)<(b) ? (a) : (b)
44 #endif
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))
58 #ifdef WIN32DLL
59 #define PREFIX __declspec(dllexport)
60 #else
61 #define PREFIX
62 #endif /* WIN32DLL */
64 #endif /* _ADF_DEFS_H */
65 /*##########################################################################*/