Skip to content

Commit 7a80710

Browse files
authored
msvc : silence codecvt c++17 deprecation warnings (#8395)
1 parent a8be1e6 commit 7a80710

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)