00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00059
00060 #if !defined __cplusplus
00061 #error C++ compiler required
00062 #endif
00063
00064
00065 #if defined WINDOWS
00066 #include <windows.h>
00067 #endif
00068
00069
00070 #include <string>
00071
00072
00073 #if !defined GLOBAL_HPP
00074 #define GLOBAL_HPP
00075
00076
00077
00078 #if defined LITTLE_ENDIAN
00079 #undef BIG_ENDIAN
00080 #elif defined BIG_ENDIAN
00081 #undef LITTLE_ENDIAN
00082 #else
00083
00086 #define LITTLE_ENDIAN
00087 #endif
00088
00089
00090 #if defined WINDOWS
00091
00092 #if defined MAKEDLL
00093 #define EXPORT __declspec(dllexport)
00094 #else
00095 #define EXPORT __declspec(dllimport)
00096 #endif // MAKEDLL
00097
00098 #else // Not WINDOWS
00099
00122 #define EXPORT
00123
00124 #endif // WINDOWS
00125
00149 namespace Doomwad
00150 {
00151
00153 typedef char int8;
00154
00156 typedef unsigned char uint8;
00157
00159 typedef short int int16;
00160
00162 typedef unsigned short int uint16;
00163
00165 typedef int int32;
00166
00168 typedef unsigned int uint32;
00169
00171 typedef long long int int64;
00172
00174 typedef unsigned long long int uint64;
00175
00177 typedef uint8 byte;
00178
00180 typedef uint16 word;
00181
00183 typedef uint32 dword;
00184
00186 typedef uint64 qword;
00187 }
00188 #endif