Databaseconnectionclasses
0.5.3
Main Page
Related Pages
Classes
Files
File List
hk_classes
hk_stdint.h
1
// ****************************************************************************
2
// copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3
// This file is part of the hk_classes library.
4
// This file may be distributed and/or modified under the terms of the
5
// GNU Library Public License version 2 as published by the Free Software
6
// Foundation and appearing in the file COPYING included in the
7
// packaging of this file.
8
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10
// ****************************************************************************
11
#ifdef HAVE_CONFIG_H
12
#include "config.h"
13
#endif
14
#ifdef HAVE_STDINT_H
15
#include <stdint.h>
16
#else
17
18
#ifndef _STDINT_H
19
20
#include <features.h>
21
#include <bits/wchar.h>
22
#include <bits/wordsize.h>
23
#if __WORDSIZE == 64
24
# ifndef __intptr_t_defined
25
typedef
long
int
intptr_t;
26
# define __intptr_t_defined
27
# endif
28
typedef
unsigned
long
int
uintptr_t;
29
#else
30
# ifndef __intptr_t_defined
31
typedef
int
intptr_t;
32
# define __intptr_t_defined
33
# endif
34
typedef
unsigned
int
uintptr_t;
35
#endif
36
#ifndef __int8_t_defined
37
# define __int8_t_defined
38
typedef
signed
char
int8_t;
39
typedef
short
int
int16_t;
40
typedef
int
int32_t;
41
# if __WORDSIZE == 64
42
typedef
long
int
int64_t;
43
# else
44
__extension__
45
typedef
long
long
int
int64_t;
46
# endif
47
#endif
48
49
/* Unsigned. */
50
typedef
unsigned
char
uint8_t;
51
typedef
unsigned
short
int
uint16_t;
52
#ifndef __uint32_t_defined
53
typedef
unsigned
int
uint32_t;
54
# define __uint32_t_defined
55
#endif
56
#if __WORDSIZE == 64
57
typedef
unsigned
long
int
uint64_t;
58
#else
59
__extension__
60
typedef
unsigned
long
long
int
uint64_t;
61
#endif
62
63
#endif // !_STDINT_H
64
#endif // !HAVE_STDINT_H
65
Generated by
1.8.5