]> mj.ucw.cz Git - netgrind.git/blob - lib/config.h
Fixed WALK_LIST.
[netgrind.git] / lib / config.h
1 /*
2  *      Sherlock Library -- Configuration-Dependent Definitions
3  *
4  *      (c) 1997--2003 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #ifndef _SHERLOCK_CONFIG_H
11 #define _SHERLOCK_CONFIG_H
12
13 #define CPU_I386 1
14 #define CPU_LITTLE_ENDIAN 1
15 #define CPU_ALLOW_UNALIGNED 1
16 #define CPU_STRUCT_ALIGN 4
17 #define CONFIG_LINUX 1
18
19 /* Types */
20
21 typedef unsigned char byte;             /* exactly 8 bits, unsigned */
22 typedef signed char sbyte;              /* exactly 8 bits, signed */
23 typedef unsigned short word;            /* exactly 16 bits, unsigned */
24 typedef short sword;                    /* exactly 16 bits, signed */
25 typedef unsigned short u16;             /* exactly 16 bits, unsigned */
26 typedef short s16;                      /* exactly 16 bits, signed */
27 typedef unsigned int u32;               /* exactly 32 bits, unsigned */
28 typedef int s32;                        /* exactly 32 bits, signed */
29 typedef unsigned int uns;               /* at least 32 bits */
30 typedef unsigned long long int u64;     /* exactly 64 bits, unsigned */
31 typedef long long int s64;              /* exactly 64 bits, signed */
32 typedef unsigned long addr_int_t;       /* Both integer and address */
33 typedef unsigned int sh_time_t;         /* Timestamp */
34
35 #ifndef NULL
36 #define NULL (void *)0
37 #endif
38
39 /* Misc */
40
41 #ifdef __GNUC__
42
43 #undef inline
44 #define NONRET __attribute__((noreturn))
45 #define UNUSED __attribute__((unused))
46 #define CONSTRUCTOR __attribute__((constructor))
47 #define PACKED __attribute__((packed))
48 #define CONST __attribute__((const))
49 #define PURE __attribute__((const))
50
51 #else
52 #error This program requires the GNU C compiler.
53 #endif
54
55 #endif