Commit | Line | Data |
---|---|---|
ef79bbde P |
1 | //\r |
2 | // Copyright (c) 2008, Wei Mingzhi. All rights reserved.\r | |
3 | //\r | |
4 | // Use, redistribution and modification of this code is unrestricted\r | |
5 | // as long as this notice is preserved.\r | |
6 | //\r | |
7 | // This code is provided with ABSOLUTELY NO WARRANTY.\r | |
8 | //\r | |
9 | \r | |
10 | #ifndef __STDINT_H\r | |
11 | #define __STDINT_H\r | |
12 | \r | |
13 | #ifdef _MSC_VER\r | |
14 | \r | |
15 | typedef __int8 int8_t; | |
16 | typedef __int16 int16_t; | |
17 | typedef __int32 int32_t; | |
18 | typedef __int64 int64_t; | |
19 | ||
20 | typedef unsigned __int8 uint8_t; | |
21 | typedef unsigned __int16 uint16_t; | |
22 | typedef unsigned __int32 uint32_t; | |
23 | typedef unsigned __int64 uint64_t;\r | |
24 | \r | |
25 | #else\r | |
26 | \r | |
27 | typedef signed char int8_t;\r | |
28 | typedef signed short int16_t;\r | |
29 | typedef signed int int32_t;\r | |
30 | typedef signed __int64 int64_t;\r | |
31 | \r | |
32 | typedef unsigned char uint8_t;\r | |
33 | typedef unsigned short uint16_t;\r | |
34 | typedef unsigned int uint32_t;\r | |
35 | typedef unsigned __int64 uint64_t;\r | |
36 | \r | |
37 | #endif\r | |
38 | \r | |
39 | #define intptr_t int32_t\r | |
40 | #define uintptr_t uint32_t\r | |
41 | \r | |
42 | #endif\r |