[Base] Don't hardcode UTF_CPP_CPLUSPLUS
This commit is contained in:
@@ -9,7 +9,10 @@
|
|||||||
|
|
||||||
#include "xenia/base/cvar.h"
|
#include "xenia/base/cvar.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#define UTF_CPP_CPLUSPLUS 202002L
|
// https://github.com/nemtrif/utfcpp/issues/85
|
||||||
|
#if defined(_MSVC_LANG) && _MSVC_LANG > __cplusplus
|
||||||
|
#define UTF_CPP_CPLUSPLUS _MSVC_LANG
|
||||||
|
#endif
|
||||||
#include "third_party/utfcpp/source/utf8.h"
|
#include "third_party/utfcpp/source/utf8.h"
|
||||||
|
|
||||||
#include "xenia/base/console.h"
|
#include "xenia/base/console.h"
|
||||||
|
|||||||
@@ -20,7 +20,10 @@
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif // !XE_PLATFORM_WIN32
|
#endif // !XE_PLATFORM_WIN32
|
||||||
|
|
||||||
#define UTF_CPP_CPLUSPLUS 202002L
|
// https://github.com/nemtrif/utfcpp/issues/85
|
||||||
|
#if defined(_MSVC_LANG) && _MSVC_LANG > __cplusplus
|
||||||
|
#define UTF_CPP_CPLUSPLUS _MSVC_LANG
|
||||||
|
#endif
|
||||||
#include "third_party/utfcpp/source/utf8.h"
|
#include "third_party/utfcpp/source/utf8.h"
|
||||||
|
|
||||||
namespace utfcpp = utf8;
|
namespace utfcpp = utf8;
|
||||||
|
|||||||
@@ -12,7 +12,10 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#define UTF_CPP_CPLUSPLUS 202002L
|
// https://github.com/nemtrif/utfcpp/issues/85
|
||||||
|
#if defined(_MSVC_LANG) && _MSVC_LANG > __cplusplus
|
||||||
|
#define UTF_CPP_CPLUSPLUS _MSVC_LANG
|
||||||
|
#endif
|
||||||
#include "third_party/utfcpp/source/utf8.h"
|
#include "third_party/utfcpp/source/utf8.h"
|
||||||
|
|
||||||
namespace utfcpp = utf8;
|
namespace utfcpp = utf8;
|
||||||
|
|||||||
Reference in New Issue
Block a user