2 * Sherlock Library -- Configuration-Dependent Definitions
4 * (c) 1997--2003 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
10 #ifndef _SHERLOCK_CONFIG_H
11 #define _SHERLOCK_CONFIG_H
14 #define CPU_LITTLE_ENDIAN 1
15 #define CPU_ALLOW_UNALIGNED 1
16 #define CPU_STRUCT_ALIGN 4
17 #define CONFIG_LINUX 1
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 */
36 #define NULL (void *)0
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))
52 #error This program requires the GNU C compiler.