]> mj.ucw.cz Git - libucw.git/blob - lib/config.h
Initial revision
[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 /* Misc */
22
23 #ifdef __GNUC__
24
25 #undef inline
26 #define NONRET __attribute__((noreturn))
27
28 #else
29
30 #define inline
31 #define NONRET
32
33 #endif
34
35 #ifdef linux
36 #define HAVE_FFS
37 #endif