3 |
#ifndef __STDINT_H__ |
#ifndef __STDINT_H__ |
4 |
#define __STDINT_H__ |
#define __STDINT_H__ |
5 |
|
|
6 |
|
#ifdef __bsdi__ |
7 |
|
#include <machine/types.h> |
8 |
|
typedef u_int8_t uint8_t; |
9 |
|
typedef u_int16_t uint16_t; |
10 |
|
typedef u_int32_t uint32_t; |
11 |
|
typedef u_int64_t uint64_t; |
12 |
|
|
13 |
|
#define INT32_MAX 0x7fffffff |
14 |
|
#else |
15 |
typedef unsigned char uint8_t; |
typedef unsigned char uint8_t; |
16 |
typedef unsigned short uint16_t; |
typedef unsigned short uint16_t; |
17 |
typedef unsigned int uint32_t; |
typedef unsigned int uint32_t; |
20 |
typedef int int32_t; |
typedef int int32_t; |
21 |
|
|
22 |
#define INT32_MAX 0x7fffffff |
#define INT32_MAX 0x7fffffff |
23 |
|
#endif |
24 |
|
|
25 |
#endif |
#endif |