From: Borislav Stanimirov Date: Wed, 10 Jul 2024 11:40:53 +0000 (+0300) Subject: msvc : silence codecvt c++17 deprecation warnings (#8395) X-Git-Tag: upstream/0.0.4488~1125 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7a80710d93ee0f4e0d335d65984ae747e62c0337;p=pkg%2Fggml%2Fsources%2Fllama.cpp msvc : silence codecvt c++17 deprecation warnings (#8395) --- diff --git a/common/common.cpp b/common/common.cpp index fc0f3b35..1e5fc30d 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1,3 +1,7 @@ +#if defined(_MSC_VER) +#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING +#endif + #include "common.h" // Change JSON_ASSERT from assert() to GGML_ASSERT: #define JSON_ASSERT GGML_ASSERT diff --git a/src/unicode.cpp b/src/unicode.cpp index 51daa15a..e05fb9d1 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -1,3 +1,7 @@ +#if defined(_MSC_VER) +#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING +#endif + #include "unicode.h" #include "unicode-data.h"