Import release 0.1.10
[secnet] / config.h.bot
CommitLineData
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
12typedef unsigned long long uint64_t;
13#elif SIZEOF_UNSIGNED_LONG==8
14typedef 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
21typedef unsigned long uint32_t;
22#elif SIZEOF_UNSIGNED_INT==4
23typedef 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
30typedef unsigned int uint16_t;
31#elif SIZEOF_UNSIGNED_SHORT==2
32typedef 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
39typedef 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
469fd1d9
SE
47#include <stdio.h>
48#include <stdarg.h>
8dea8d37 49#include "snprintf.h"
2fe58dfd
SE
50#endif
51
2fe58dfd 52#endif /* _CONFIG_H */