Import release 0.1.11
[secnet] / config.h.bot
... / ...
CommitLineData
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
12typedef unsigned long long uint64_t;
13typedef long long int64_t;
14#elif SIZEOF_UNSIGNED_LONG==8
15typedef unsigned long uint64_t;
16typedef 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
23typedef unsigned long uint32_t;
24typedef long int32_t;
25#elif SIZEOF_UNSIGNED_INT==4
26typedef unsigned int uint32_t;
27typedef 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
34typedef unsigned int uint16_t;
35typedef int int16_t;
36#elif SIZEOF_UNSIGNED_SHORT==2
37typedef unsigned short uint16_t;
38typedef 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
45typedef 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 */