-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.h
More file actions
39 lines (31 loc) · 721 Bytes
/
Copy pathtypes.h
File metadata and controls
39 lines (31 loc) · 721 Bytes
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
#ifndef _TYPES_H
#define _TYPES_H
#ifdef HAVE_SDL
#include <SDL.h>
#else
//#include <stdint.h>
#endif
#include <stdlib.h>
typedef struct _MEM_PATCH {
unsigned int addr;
unsigned char byte;
} mem_patch;
#ifdef __GNUC__ /*__GNUC__*/
typedef unsigned long long ClockCycle;
#define TSTATE_T_MID (((long long) -1LL)/2ULL)
#define TSTATE_T_LEN "Lu"
#else
typedef unsigned __int64 ClockCycle;
#define TSTATE_T_MID (((__int64) -1L)/2UL)
#define TSTATE_T_LEN "lu"
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#if ( defined(_MSC_VER) && (_MSC_VER == 1200) && defined(_MSC_EXTENSIONS) )
#define inline __forceinline // For MSVC++ 6.0 with Microsoft extensions.
#endif
#endif // _TYPES_H