Skip to content

Commit 35f85f7

Browse files
iboBNeo Zhang
authored andcommitted
msvc : silence codecvt c++17 deprecation warnings (ggml-org#8395)
1 parent f4e68cd commit 35f85f7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

common/common.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if defined(_MSC_VER)
2+
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
3+
#endif
4+
15
#include "common.h"
26
// Change JSON_ASSERT from assert() to GGML_ASSERT:
37
#define JSON_ASSERT GGML_ASSERT

src/unicode.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if defined(_MSC_VER)
2+
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
3+
#endif
4+
15
#include "unicode.h"
26
#include "unicode-data.h"
37

0 commit comments

Comments
 (0)