mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-10 17:37:14 +00:00
Use built-in wstring_convert on Android (#2095)
This commit is contained in:
parent
86af54ded8
commit
f6c82358e9
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#ifdef _MSC_VER
|
||||
#include <codecvt>
|
||||
#include <locale.h>
|
||||
#elif (defined __APPLE__)
|
||||
#elif defined (__APPLE__) or defined (__ANDROID__)
|
||||
#include <codecvt>
|
||||
#else
|
||||
#include <limits>
|
||||
|
|
@ -105,7 +105,7 @@ class Locale {
|
|||
std::locale loc_;
|
||||
};
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) or defined(__ANDROID__)
|
||||
using Utf8Converter = std::wstring_convert<std::codecvt_utf8<wchar_t>>;
|
||||
#else
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue