TexCompTypes: Fix to not require BaseConfig.h.

This commit is contained in:
bunnei 2018-06-12 16:11:41 -04:00
parent 9c4cd7abde
commit deb1856b70

View file

@ -22,47 +22,6 @@
#ifndef _TEX_COMP_TYPES_H_ #ifndef _TEX_COMP_TYPES_H_
#define _TEX_COMP_TYPES_H_ #define _TEX_COMP_TYPES_H_
#include "FasTC/BaseConfig.h"
// Do we support C++11?
#ifdef FASTC_BASE_HAS_CPP11_TYPES
#include <cstdint>
typedef int8_t int8;
typedef uint8_t uint8;
typedef int16_t int16;
typedef uint16_t uint16;
typedef int32_t int32;
typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
typedef char CHAR;
#else
// Windows?
#ifdef _MSC_VER
typedef __int16 int16;
typedef unsigned __int16 uint16;
typedef __int32 int32;
typedef unsigned __int32 uint32;
typedef __int8 int8;
typedef unsigned __int8 uint8;
typedef unsigned __int64 uint64;
typedef __int64 int64;
#include <tchar.h>
typedef TCHAR CHAR;
// If not, assume GCC, or at least standard defines...
#else
#include <stdint.h> #include <stdint.h>
typedef int8_t int8; typedef int8_t int8;
@ -77,8 +36,4 @@ typedef uint64_t uint64;
typedef char CHAR; typedef char CHAR;
#endif // _MSC_VER
#endif // FASTC_BASE_HAS_CPP11_TYPES
#endif // _TEX_COMP_TYPES_H_ #endif // _TEX_COMP_TYPES_H_