3737// TheSuperHackers @compile feliwir 07/04/2025 Adds utility macros for cross-platform compatibility
3838#include <Utility/compat.h>
3939#include <Utility/CppMacros.h>
40+ #include <Utility/stdint_adapter.h>
4041
4142/*
4243** Turn off some unneeded warnings.
124125//--------------------------------------------------------------------
125126// Fundamental type definitions
126127//--------------------------------------------------------------------
127- typedef float Real ; // 4 bytes
128- typedef int Int ; // 4 bytes
129- typedef unsigned int UnsignedInt ; // 4 bytes
130- typedef unsigned short UnsignedShort ; // 2 bytes
131- typedef short Short ; // 2 bytes
132- typedef unsigned char UnsignedByte ; // 1 byte USED TO BE "Byte"
133- typedef char Byte ; // 1 byte USED TO BE "SignedByte"
134- typedef char Char ; // 1 byte of text
135- typedef bool Bool ; //
128+ typedef float Real ; // 4 bytes
129+ typedef int32_t Int ; // 4 bytes
130+ typedef uint32_t UnsignedInt ; // 4 bytes
131+ typedef uint16_t UnsignedShort ; // 2 bytes
132+ typedef int16_t Short ; // 2 bytes
133+ typedef unsigned char UnsignedByte ; // 1 byte USED TO BE "Byte"
134+ typedef char Byte ; // 1 byte USED TO BE "SignedByte"
135+ typedef char Char ; // 1 byte of text
136+ typedef bool Bool ; //
136137// note, the types below should use "long long", but MSVC doesn't support it yet
137- #ifdef _MSC_VER
138- typedef __int64 Int64 ; // 8 bytes
139- typedef unsigned __int64 UnsignedInt64 ; // 8 bytes
140- #else
141- typedef long long Int64 ; // 8 bytes
142- typedef unsigned long long UnsignedInt64 ; // 8 bytes
143- #endif
138+ typedef int64_t Int64 ; // 8 bytes
139+ typedef uint64_t UnsignedInt64 ; // 8 bytes
144140
145141#endif // _BASE_TYPE_CORE_H_
0 commit comments