1 /*
2  * OpenBOR - http://www.chronocrash.com
3  * -----------------------------------------------------------------------
4  * All rights reserved, see LICENSE in OpenBOR root for details.
5  *
6  * Copyright (c) 2004 - 2014 OpenBOR Team
7  */
8 
9 #ifndef DEPENDS_H
10 #define DEPENDS_H
11 
12 #include "types.h"
13 #include "globals.h"
14 
15 #ifndef COMPILED_SCRIPT
16 #define COMPILED_SCRIPT 1
17 #endif
18 
19 typedef const char *LPCSTR;
20 typedef char *LPSTR;
21 typedef s32 HRESULT;
22 typedef u32 DWORD;
23 typedef u32 ULONG;
24 typedef s32 LONG;
25 typedef char CHAR;
26 typedef float FLOAT;
27 typedef double DOUBLE;
28 
29 #ifdef WII
30 #include <gcbool.h>
31 #else
32 typedef int BOOL;
33 #endif
34 
35 #ifdef VOID
36 #undef VOID
37 #endif
38 typedef void VOID;
39 
40 #ifndef NULL
41 #define NULL 0
42 #endif
43 
44 #ifdef S_OK
45 #undef S_OK
46 #endif
47 #define S_OK   ((HRESULT)0)
48 
49 #ifdef E_FAIL
50 #undef E_FAIL
51 #endif
52 #define E_FAIL ((HRESULT)-1)
53 
54 #ifdef FAILED
55 #undef FAILED
56 #endif
57 #define FAILED(status) (((HRESULT)(status))<0)
58 
59 #ifdef SUCCEEDED
60 #undef SUCCEEDED
61 #endif
62 #define SUCCEEDED(status) (((HRESULT)(status))>=0)
63 
64 #ifndef FALSE
65 #define FALSE 0
66 #endif
67 #ifndef TRUE
68 #define TRUE 1
69 #endif
70 
71 #define MAX_STR_LEN    128
72 #define MAX_STR_VAR_LEN    64
73 
74 //#pragma pack(4)
75 
76 #endif
77