diff --git a/onnxruntime/core/providers/cpu/nn/string_normalizer.cc b/onnxruntime/core/providers/cpu/nn/string_normalizer.cc index bd6df708cc..662397b250 100644 --- a/onnxruntime/core/providers/cpu/nn/string_normalizer.cc +++ b/onnxruntime/core/providers/cpu/nn/string_normalizer.cc @@ -8,7 +8,7 @@ #ifdef _MSC_VER #include #include -#elif defined(__APPLE__) or defined(__ANDROID__) +#elif defined(__APPLE__) || defined(__ANDROID__) #include #else #include @@ -110,7 +110,7 @@ class Locale { std::locale loc_; }; -#if defined(__APPLE__) or defined(__ANDROID__) +#if defined(__APPLE__) || defined(__ANDROID__) using Utf8Converter = std::wstring_convert>; #else