fix the bug of has_include error with g++4.8.5

This commit is contained in:
Aengus.Jiang
2023-01-12 17:34:05 +08:00
parent a5bc05f32a
commit 0cce8d7326

View File

@@ -3,10 +3,10 @@
#define INDICATORS_DISPLAY_WIDTH #define INDICATORS_DISPLAY_WIDTH
#include <clocale> #include <clocale>
#if __has_include(<codecvt>) #if defined __has_include
#include <codecvt> #if __has_include (<codecvt>)
#define INDICATORS_HAVE_CODECVT 1 #define INDICATORS_HAVE_CODECVT 1
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING #endif
#endif #endif
#include <cstdlib> #include <cstdlib>
#include <locale> #include <locale>