Commit | Line | Data |
3e09a0ee |
1 | // wintypes.h - Windows data types |
2 | // (when not compiling for Windows) |
3 | // License information for this code is in license.txt |
4 | |
5 | #ifndef WIN_TYPES_INCLUDED |
6 | #define WIN_TYPES_INCLUDED |
7 | |
895681eb |
8 | #include <stdint.h> |
9 | |
3e09a0ee |
10 | #define WINAPI |
11 | #define CDECL |
12 | #define __fastcall |
13 | |
14 | #define CONST const |
895681eb |
15 | #define VOID void |
3e09a0ee |
16 | |
895681eb |
17 | //typedef void VOID; |
3e09a0ee |
18 | typedef void *LPVOID; |
19 | typedef CONST void *LPCVOID; |
20 | typedef const char *LPCSTR; |
895681eb |
21 | typedef uint8_t BYTE; |
3e09a0ee |
22 | typedef BYTE *LPBYTE; |
895681eb |
23 | typedef uint16_t WORD; |
3e09a0ee |
24 | typedef WORD *LPWORD; |
895681eb |
25 | typedef int16_t SHORT; |
26 | typedef uint32_t DWORD; |
3e09a0ee |
27 | typedef DWORD *LPDWORD; |
895681eb |
28 | typedef int32_t LONG; |
3e09a0ee |
29 | typedef LONG *LPLONG; |
30 | |
31 | typedef int BOOL; |
32 | typedef int (WINAPI *FARPROC)(); |
33 | |
34 | #define FALSE 0 |
35 | #define TRUE 1 |
36 | |
37 | #define ERROR_NOT_ENOUGH_MEMORY 8L |
38 | #define ERROR_INVALID_PARAMETER 87L |
39 | |
40 | #endif |
41 | |