msvc : silence codecvt c++17 deprecation warnings

This commit is contained in:
Borislav Stanimirov 2024-07-09 16:02:51 +03:00
parent 3f2d538b81
commit 7d23c8792c
No known key found for this signature in database
GPG key ID: 85AD7C1E5581FC30
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
#if defined(_MSC_VER)
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#endif
#include "common.h" #include "common.h"
// Change JSON_ASSERT from assert() to GGML_ASSERT: // Change JSON_ASSERT from assert() to GGML_ASSERT:
#define JSON_ASSERT GGML_ASSERT #define JSON_ASSERT GGML_ASSERT

View file

@ -1,3 +1,7 @@
#if defined(_MSC_VER)
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#endif
#include "unicode.h" #include "unicode.h"
#include "unicode-data.h" #include "unicode-data.h"