Remove hacky fix for missing codecvt on linux

This commit is contained in:
Christian Hawley 2019-01-18 10:32:21 -05:00 committed by chris hawley
parent 84b8b444cf
commit b1f2f177cd
1 changed files with 19 additions and 3 deletions

View File

@ -9,12 +9,28 @@
#include "xenia/base/string.h"
// TODO(benvanik): when GCC finally gets codecvt, use that.
#if XE_PLATFORM_LINUX
// codecvt existence check
#ifdef __clang__
// using clang
#if (__clang_major__ < 4) // 3.3 has it but I think we need at least 4 anyway
// insufficient clang version
#define NO_CODECVT 1
#else
#include <codecvt>
#endif // XE_PLATFORM_LINUX
#endif
#elif defined(__GNUC__) || defined(__GNUG__)
// using gcc
#if (__GNUC__ < 5)
// insufficient clang version
#define NO_CODECVT 1
#else
#include <codecvt>
#endif
#elif defined( \
_MSC_VER) // since the windows 10 sdk is required, this shouldn't be an
// issue
#include <codecvt>
#endif
#include <cctype>
#include <cstring>