1
#ifndef _LIBIDN_LIB_IDN_INT_H
2
#define _LIBIDN_LIB_IDN_INT_H 1
3
#ifndef _GENERATED_STDINT_H
4
#define _GENERATED_STDINT_H "libidn 0.3.1"
5
/* generated using gnu compiler gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) */
6
#define _STDINT_HAVE_STDINT_H 1
8
/* ................... shortcircuit part ........................... */
10
#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
12
//#include <qglobal.h>
22
/* .................... configured part ............................ */
24
/* whether we have a C99 compatible stdint header file */
25
/* #undef _STDINT_HEADER_INTPTR */
26
/* whether we have a C96 compatible inttypes header file */
27
/* #undef _STDINT_HEADER_UINT32 */
28
/* whether we have a BSD compatible inet types header */
29
/* #undef _STDINT_HEADER_U_INT32 */
31
/* which 64bit typedef has been found */
32
/* #undef _STDINT_HAVE_UINT64_T */
33
/* #undef _STDINT_HAVE_U_INT64_T */
35
/* which type model has been detected */
36
/* #undef _STDINT_CHAR_MODEL // skipped */
37
/* #undef _STDINT_LONG_MODEL // skipped */
39
/* whether int_least types were detected */
40
/* #undef _STDINT_HAVE_INT_LEAST32_T */
41
/* whether int_fast types were detected */
42
/* #undef _STDINT_HAVE_INT_FAST32_T */
43
/* whether intmax_t type was detected */
44
/* #undef _STDINT_HAVE_INTMAX_T */
46
/* .................... detections part ............................ */
48
/* whether we need to define bitspecific types from compiler base types */
49
#ifndef _STDINT_HEADER_INTPTR
50
#ifndef _STDINT_HEADER_UINT32
51
#ifndef _STDINT_HEADER_U_INT32
52
#define _STDINT_NEED_INT_MODEL_T
54
#define _STDINT_HAVE_U_INT_TYPES
59
#ifdef _STDINT_HAVE_U_INT_TYPES
60
#undef _STDINT_NEED_INT_MODEL_T
63
#ifdef _STDINT_CHAR_MODEL
64
#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
65
#ifndef _STDINT_BYTE_MODEL
66
#define _STDINT_BYTE_MODEL 12
71
#ifndef _STDINT_HAVE_INT_LEAST32_T
72
#define _STDINT_NEED_INT_LEAST_T
75
#ifndef _STDINT_HAVE_INT_FAST32_T
76
#define _STDINT_NEED_INT_FAST_T
79
#ifndef _STDINT_HEADER_INTPTR
80
#define _STDINT_NEED_INTPTR_T
81
#ifndef _STDINT_HAVE_INTMAX_T
82
#define _STDINT_NEED_INTMAX_T
87
/* .................... definition part ............................ */
89
/* some system headers have good uint64_t */
90
#ifndef _HAVE_UINT64_T
91
#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
92
#define _HAVE_UINT64_T
93
#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
94
#define _HAVE_UINT64_T
95
typedef u_int64_t uint64_t;
99
#ifndef _HAVE_UINT64_T
100
/* .. here are some common heuristics using compiler runtime specifics */
101
#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
102
#define _HAVE_UINT64_T
103
typedef long long int64_t;
104
typedef unsigned long long uint64_t;
106
#elif !defined __STRICT_ANSI__
107
#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
108
#define _HAVE_UINT64_T
109
typedef __int64 int64_t;
110
typedef unsigned __int64 uint64_t;
112
#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
113
/* note: all ELF-systems seem to have loff-support which needs 64-bit */
114
#if !defined _NO_LONGLONG
115
#define _HAVE_UINT64_T
116
typedef long long int64_t;
117
typedef unsigned long long uint64_t;
120
#elif defined __alpha || (defined __mips && defined _ABIN32)
121
#if !defined _NO_LONGLONG
122
typedef long int64_t;
123
typedef unsigned long uint64_t;
125
/* compiler/cpu type to define int64_t */
130
#if defined _STDINT_HAVE_U_INT_TYPES
131
/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
132
typedef u_int8_t uint8_t;
133
typedef u_int16_t uint16_t;
134
typedef u_int32_t uint32_t;
136
/* glibc compatibility */
137
#ifndef __int8_t_defined
138
#define __int8_t_defined
142
#ifdef _STDINT_NEED_INT_MODEL_T
143
/* we must guess all the basic types. Apart from byte-adressable system, */
144
/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
145
/* (btw, those nibble-addressable systems are way off, or so we assume) */
148
#if defined _STDINT_BYTE_MODEL
149
#if _STDINT_LONG_MODEL+0 == 242
150
/* 2:4:2 = IP16 = a normal 16-bit system */
151
typedef unsigned char uint8_t;
152
typedef unsigned short uint16_t;
153
typedef unsigned long uint32_t;
154
#ifndef __int8_t_defined
155
#define __int8_t_defined
157
typedef short int16_t;
158
typedef long int32_t;
160
#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
161
/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
162
/* 4:4:4 = ILP32 = a normal 32-bit system */
163
typedef unsigned char uint8_t;
164
typedef unsigned short uint16_t;
165
typedef unsigned int uint32_t;
166
#ifndef __int8_t_defined
167
#define __int8_t_defined
169
typedef short int16_t;
172
#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
173
/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
174
/* 4:8:8 = LP64 = a normal 64-bit system */
175
typedef unsigned char uint8_t;
176
typedef unsigned short uint16_t;
177
typedef unsigned int uint32_t;
178
#ifndef __int8_t_defined
179
#define __int8_t_defined
181
typedef short int16_t;
184
/* this system has a "long" of 64bit */
185
#ifndef _HAVE_UINT64_T
186
#define _HAVE_UINT64_T
187
typedef unsigned long uint64_t;
188
typedef long int64_t;
190
#elif _STDINT_LONG_MODEL+0 == 448
191
/* LLP64 a 64-bit system derived from a 32-bit system */
192
typedef unsigned char uint8_t;
193
typedef unsigned short uint16_t;
194
typedef unsigned int uint32_t;
195
#ifndef __int8_t_defined
196
#define __int8_t_defined
198
typedef short int16_t;
201
/* assuming the system has a "long long" */
202
#ifndef _HAVE_UINT64_T
203
#define _HAVE_UINT64_T
204
typedef unsigned long long uint64_t;
205
typedef long long int64_t;
208
#define _STDINT_NO_INT32_T
211
#define _STDINT_NO_INT8_T
212
#define _STDINT_NO_INT32_T
217
* quote from SunOS-5.8 sys/inttypes.h:
218
* Use at your own risk. As of February 1996, the committee is squarely
219
* behind the fixed sized types; the "least" and "fast" types are still being
220
* discussed. The probability that the "fast" types may be removed before
221
* the standard is finalized is high enough that they are not currently
225
#if defined _STDINT_NEED_INT_LEAST_T
226
typedef int8_t int_least8_t;
227
typedef int16_t int_least16_t;
228
typedef int32_t int_least32_t;
229
#ifdef _HAVE_UINT64_T
230
typedef int64_t int_least64_t;
233
typedef uint8_t uint_least8_t;
234
typedef uint16_t uint_least16_t;
235
typedef uint32_t uint_least32_t;
236
#ifdef _HAVE_UINT64_T
237
typedef uint64_t uint_least64_t;
242
#if defined _STDINT_NEED_INT_FAST_T
243
typedef int8_t int_fast8_t;
244
typedef int int_fast16_t;
245
typedef int32_t int_fast32_t;
246
#ifdef _HAVE_UINT64_T
247
typedef int64_t int_fast64_t;
250
typedef uint8_t uint_fast8_t;
251
typedef unsigned uint_fast16_t;
252
typedef uint32_t uint_fast32_t;
253
#ifdef _HAVE_UINT64_T
254
typedef uint64_t uint_fast64_t;
259
#ifdef _STDINT_NEED_INTMAX_T
260
#ifdef _HAVE_UINT64_T
261
typedef int64_t intmax_t;
262
typedef uint64_t uintmax_t;
264
typedef long intmax_t;
265
typedef unsigned long uintmax_t;
269
#ifdef _STDINT_NEED_INTPTR_T
270
#ifndef __intptr_t_defined
271
#define __intptr_t_defined
272
/* we encourage using "long" to store pointer values, never use "int" ! */
273
#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
274
typedef unsinged int uintptr_t;
275
typedef int intptr_t;
276
#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
277
typedef unsigned long uintptr_t;
278
typedef long intptr_t;
279
#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
280
typedef uint64_t uintptr_t;
281
typedef int64_t intptr_t;
282
#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
283
typedef unsigned long uintptr_t;
284
typedef long intptr_t;