]> mj.ucw.cz Git - libucw.git/blob - lib/config.h
x
[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
28 /* Misc */
29
30 #ifdef __GNUC__
31
32 #undef inline
33 #define NONRET __attribute__((noreturn))
34
35 #else
36
37 #define inline
38 #define NONRET
39
40 #endif
41
42 #ifdef linux
43 #define HAVE_FFS
44 #endif