pcsxr-1.9.92
[pcsx_rearmed.git] / win32 / glue / stdint.h
CommitLineData
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
15typedef __int8 int8_t;
16typedef __int16 int16_t;
17typedef __int32 int32_t;
18typedef __int64 int64_t;
19
20typedef unsigned __int8 uint8_t;
21typedef unsigned __int16 uint16_t;
22typedef unsigned __int32 uint32_t;
23typedef unsigned __int64 uint64_t;\r
24\r
25#else\r
26\r
27typedef signed char int8_t;\r
28typedef signed short int16_t;\r
29typedef signed int int32_t;\r
30typedef signed __int64 int64_t;\r
31\r
32typedef unsigned char uint8_t;\r
33typedef unsigned short uint16_t;\r
34typedef unsigned int uint32_t;\r
35typedef 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