Revision 08dc07a3
b/slirp/slirp.h | ||
---|---|---|
7 | 7 |
#ifdef _WIN32 |
8 | 8 |
# include <inttypes.h> |
9 | 9 |
|
10 |
typedef uint8_t u_int8_t; |
|
11 |
typedef uint16_t u_int16_t; |
|
12 |
typedef uint32_t u_int32_t; |
|
13 |
typedef uint64_t u_int64_t; |
|
14 | 10 |
typedef char *caddr_t; |
15 | 11 |
|
16 | 12 |
# include <windows.h> |
... | ... | |
38 | 34 |
|
39 | 35 |
#include <sys/time.h> |
40 | 36 |
|
41 |
#ifdef NEED_TYPEDEFS |
|
42 |
typedef char int8_t; |
|
43 |
typedef unsigned char u_int8_t; |
|
44 |
|
|
45 |
# if SIZEOF_SHORT == 2 |
|
46 |
typedef short int16_t; |
|
47 |
typedef unsigned short u_int16_t; |
|
48 |
# else |
|
49 |
# if SIZEOF_INT == 2 |
|
50 |
typedef int int16_t; |
|
51 |
typedef unsigned int u_int16_t; |
|
52 |
# else |
|
53 |
#error Cannot find a type with sizeof() == 2 |
|
54 |
# endif |
|
55 |
# endif |
|
56 |
|
|
57 |
# if SIZEOF_SHORT == 4 |
|
58 |
typedef short int32_t; |
|
59 |
typedef unsigned short u_int32_t; |
|
60 |
# else |
|
61 |
# if SIZEOF_INT == 4 |
|
62 |
typedef int int32_t; |
|
63 |
typedef unsigned int u_int32_t; |
|
64 |
# else |
|
65 |
#error Cannot find a type with sizeof() == 4 |
|
66 |
# endif |
|
67 |
# endif |
|
68 |
#endif /* NEED_TYPEDEFS */ |
|
69 |
|
|
70 | 37 |
#ifdef HAVE_UNISTD_H |
71 | 38 |
# include <unistd.h> |
72 | 39 |
#endif |
Also available in: Unified diff