chiark / gitweb /
Import release 0.1.13
[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 typedef long long int64_t;
14 #elif SIZEOF_UNSIGNED_LONG==8
15 typedef unsigned long uint64_t;
16 typedef long int64_t;
17 #else
18 #error I do not know what to use for a uint64_t.
19 #endif
20
21 /* Give us an unsigned 32-bit data type. */
22 #if SIZEOF_UNSIGNED_LONG==4
23 typedef unsigned long uint32_t;
24 typedef long int32_t;
25 #elif SIZEOF_UNSIGNED_INT==4
26 typedef unsigned int uint32_t;
27 typedef int int32_t;
28 #else
29 #error I do not know what to use for a uint32_t.
30 #endif
31
32 /* An unsigned 16-bit data type. */
33 #if SIZEOF_UNSIGNED_INT==2
34 typedef unsigned int uint16_t;
35 typedef int int16_t;
36 #elif SIZEOF_UNSIGNED_SHORT==2
37 typedef unsigned short uint16_t;
38 typedef short int16_t;
39 #else
40 #error I do not know what to use for a uint16_t.
41 #endif
42
43 /* An unsigned 8-bit data type */
44 #if SIZEOF_UNSIGNED_CHAR==1
45 typedef unsigned char uint8_t;
46 #else
47 #error I do not know what to use for a uint8_t.
48 #endif
49 #endif
50 #endif
51
52 #ifndef HAVE_SNPRINTF
53 #include <stdio.h>
54 #include <stdarg.h>
55 #include "snprintf.h"
56 #endif
57
58 #endif /* _CONFIG_H */