]> mj.ucw.cz Git - libucw.git/blob - lib/config.h
e9b84fc38ba20a1b141528e02f490a712ddd2dfa
[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 /* Version */
8
9 #define SHER_VER "0.1"
10
11 /* Types */
12
13 typedef unsigned char byte;             /* exactly 8 bits, unsigned */
14 typedef signed char sbyte;              /* exactly 8 bits, signed */
15 typedef unsigned short word;            /* exactly 16 bits, unsigned */
16 typedef short sword;                    /* exactly 16 bits, signed */
17 typedef unsigned int ulg;               /* exactly 32 bits, unsigned */
18 typedef int slg;                        /* exactly 32 bits, signed */
19 typedef unsigned int uns;               /* at least 32 bits */
20
21 /* CPU characteristics */
22
23 #define CPU_LITTLE_ENDIAN
24 #undef CPU_BIG_ENDIAN
25 #define CPU_CAN_DO_UNALIGNED_WORDS
26 #define CPU_CAN_DO_UNALIGNED_LONGS
27 #define CPU_STRUCT_ALIGN 4
28
29 /* Misc */
30
31 #ifdef __GNUC__
32
33 #undef inline
34 #define NONRET __attribute__((noreturn))
35
36 #else
37
38 #define inline
39 #define NONRET
40
41 #endif