forked from ValleyBell/libvgm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stdtype.h
45 lines (35 loc) · 937 Bytes
/
stdtype.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __CST_STDTYPE_H__
#define __CST_STDTYPE_H__
#ifdef HAVE_STDINT_H
#include <stdint.h>
typedef uint8_t UINT8;
typedef int8_t INT8;
typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint32_t UINT32;
typedef int32_t INT32;
typedef uint64_t UINT64;
typedef int64_t INT64;
#else // ! HAVE_STDINT_H
// typedefs to use MAME's (U)INTxx types (copied from MAME\src\ods\odscomm.h)
// 8-bit values
typedef unsigned char UINT8;
typedef signed char INT8;
// 16-bit values
typedef unsigned short UINT16;
typedef signed short INT16;
// 32-bit values
#ifndef _WINDOWS_H
typedef unsigned int UINT32;
typedef signed int INT32;
// 64-bit values
#ifdef _MSC_VER
typedef unsigned __int64 UINT64;
typedef signed __int64 INT64;
#else
__extension__ typedef unsigned long long UINT64;
__extension__ typedef signed long long INT64;
#endif
#endif // _WINDOWS_H
#endif // HAVE_STDINT
#endif // __CST_STDTYPE_H__