Commit | Line | Data |
---|---|---|
2fe58dfd SE |
1 | /* -*- c -*- */ |
2 | ||
3 | /* These are from config.h.bot, pasted onto the end of config.h.in. */ | |
4 | ||
59635212 SE |
5 | #ifdef HAVE_INTTYPES_H |
6 | #include <inttypes.h> | |
7 | #else | |
8 | #ifdef HAVE_STDINT_H | |
9 | #include <stdint.h> | |
10 | #else | |
8dea8d37 SE |
11 | #if SIZEOF_UNSIGNED_LONG_LONG==8 |
12 | typedef unsigned long long uint64_t; | |
13 | #elif SIZEOF_UNSIGNED_LONG==8 | |
14 | typedef unsigned long uint64_t; | |
15 | #else | |
16 | #error I do not know what to use for a uint64_t. | |
17 | #endif | |
18 | ||
19 | /* Give us an unsigned 32-bit data type. */ | |
20 | #if SIZEOF_UNSIGNED_LONG==4 | |
21 | typedef unsigned long uint32_t; | |
22 | #elif SIZEOF_UNSIGNED_INT==4 | |
23 | typedef unsigned int uint32_t; | |
24 | #else | |
25 | #error I do not know what to use for a uint32_t. | |
26 | #endif | |
27 | ||
28 | /* An unsigned 16-bit data type. */ | |
29 | #if SIZEOF_UNSIGNED_INT==2 | |
30 | typedef unsigned int uint16_t; | |
31 | #elif SIZEOF_UNSIGNED_SHORT==2 | |
32 | typedef unsigned short uint16_t; | |
33 | #else | |
34 | #error I do not know what to use for a uint16_t. | |
59635212 | 35 | #endif |
8dea8d37 SE |
36 | |
37 | /* An unsigned 8-bit data type */ | |
38 | #if SIZEOF_UNSIGNED_CHAR==1 | |
39 | typedef unsigned char uint8_t; | |
40 | #else | |
41 | #error I do not know what to use for a uint8_t. | |
42 | #endif | |
43 | #endif | |
44 | #endif | |
45 | ||
46 | #ifndef HAVE_SNPRINTF | |
47 | #include "snprintf.h" | |
2fe58dfd SE |
48 | #endif |
49 | ||
2fe58dfd | 50 | #endif /* _CONFIG_H */ |