]> mj.ucw.cz Git - libucw.git/blob - lib/config.h
main_get_timer() made public.
[libucw.git] / lib / config.h
1 /*
2  *      UCW Library -- Configuration-Dependent Definitions
3  *
4  *      (c) 1997--2004 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #ifndef _UCW_CONFIG_H
11 #define _UCW_CONFIG_H
12
13 /* Configuration switches */
14
15 #include "lib/autoconf.h"
16
17 /* Types */
18
19 typedef unsigned char byte;             /* exactly 8 bits, unsigned */
20 typedef signed char sbyte;              /* exactly 8 bits, signed */
21 typedef unsigned char u8;               /* exactly 8 bits, unsigned */
22 typedef signed char s8;                 /* 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 */
34
35 #ifndef NULL
36 #define NULL (void *)0
37 #endif
38
39 #ifdef CONFIG_LFS                       /* File positions */
40 typedef s64 sh_off_t;
41 #else
42 typedef s32 sh_off_t;
43 #endif
44
45 #endif