mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 05:15:34 +00:00
Character type fixes for building with clang-cl
This commit is contained in:
parent
01471c9ef3
commit
4386ababbe
2 changed files with 12 additions and 2 deletions
|
|
@ -54,7 +54,17 @@ struct EmptyType {}; ///< "Null" type used by templates
|
|||
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef char UTF8; ///< Compiler independent 8 bit Unicode encoded character
|
||||
|
||||
#if defined(_MSC_VER) && defined(__clang__)
|
||||
// Clang's MSVC compatibility mode doesn't currently support /Zc:wchar_t-,
|
||||
// which we rely on to avoid type conversion errors when calling system
|
||||
// APIs when wchar_t is defined as unsigned short. So, just define UTF16
|
||||
// as wchar_t instead since it's always a 2 byte unsigned on windows anyway.
|
||||
typedef wchar_t UTF16;
|
||||
#else
|
||||
typedef unsigned short UTF16; ///< Compiler independent 16 bit Unicode encoded character
|
||||
#endif
|
||||
|
||||
typedef unsigned int UTF32; ///< Compiler independent 32 bit Unicode encoded character
|
||||
|
||||
typedef const char* StringTableEntry;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue