]> mj.ucw.cz Git - libucw.git/blob - lib/config.h
Syncing crashed repository with my work tree.
[libucw.git] / lib / config.h
1 /*
2  *      Sherlock Library -- Configuration-Dependent Definitions
3  *
4  *      (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
5  */
6
7 #ifndef _SHERLOCK_CONFIG_H
8 #define _SHERLOCK_CONFIG_H
9
10 /* Version */
11
12 #define SHER_VER "1.0"
13
14 /* Types */
15
16 typedef unsigned char byte;             /* exactly 8 bits, unsigned */
17 typedef signed char sbyte;              /* exactly 8 bits, signed */
18 typedef unsigned short word;            /* exactly 16 bits, unsigned */
19 typedef short sword;                    /* exactly 16 bits, signed */
20 typedef unsigned int ulg;               /* exactly 32 bits, unsigned */
21 typedef int slg;                        /* exactly 32 bits, signed */
22 typedef unsigned int uns;               /* at least 32 bits */
23
24 #ifndef NULL
25 #define NULL (void *)0
26 #endif
27
28 /* CPU characteristics */
29
30 #define CPU_LITTLE_ENDIAN
31 #undef CPU_BIG_ENDIAN
32 #define CPU_CAN_DO_UNALIGNED_WORDS
33 #define CPU_CAN_DO_UNALIGNED_LONGS
34 #define CPU_STRUCT_ALIGN 4
35
36 /* Misc */
37
38 #ifdef __GNUC__
39
40 #undef inline
41 #define NONRET __attribute__((noreturn))
42
43 #else
44
45 #define inline
46 #define NONRET
47
48 #endif
49
50 #endif