[Base] Don't hardcode UTF_CPP_CPLUSPLUS

This commit is contained in:
Margen67
2025-08-10 06:01:43 -07:00
parent 6941b69691
commit 995c105c1c
3 changed files with 12 additions and 3 deletions

View File

@@ -12,7 +12,10 @@
#include <algorithm>
#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"
namespace utfcpp = utf8;