chiark / gitweb /
Import release 0.1.10
[secnet.git] / config.h.bot
1 /* -*- c -*- */
2
3 /* These are from config.h.bot, pasted onto the end of config.h.in. */
4
5 #ifdef HAVE_INTTYPES_H
6 #include <inttypes.h>
7 #else
8 #ifdef HAVE_STDINT_H
9 #include <stdint.h>
10 #else
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.
35 #endif
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 <stdio.h>
48 #include <stdarg.h>
49 #include "snprintf.h"
50 #endif
51
52 #endif /* _CONFIG_H */