diff --git a/runtime/base/string_helper.h b/runtime/base/string_helper.h index c1184b40d44dab49df71eb80c2860b919dc82804..91a1a508a5c311c0235923cc8f6475660a49b4b0 100644 --- a/runtime/base/string_helper.h +++ b/runtime/base/string_helper.h @@ -16,6 +16,8 @@ #ifndef ECMASCRIPT_BASE_STRING_HELP_H #define ECMASCRIPT_BASE_STRING_HELP_H +#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING + #include #include #include @@ -265,4 +267,7 @@ public: } }; } // namespace panda::ecmascript::base + +#undef _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING + #endif // ECMASCRIPT_BASE_STRING_HELP_H