From 0cce8d7326ea7479f00e689cb6b3f8134c9a5f66 Mon Sep 17 00:00:00 2001 From: "Aengus.Jiang" Date: Thu, 12 Jan 2023 17:34:05 +0800 Subject: [PATCH] fix the bug of has_include error with g++4.8.5 --- include/indicators/display_width.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/indicators/display_width.hpp b/include/indicators/display_width.hpp index 3bef06b..468c5c6 100644 --- a/include/indicators/display_width.hpp +++ b/include/indicators/display_width.hpp @@ -3,10 +3,10 @@ #define INDICATORS_DISPLAY_WIDTH #include -#if __has_include() -#include +#if defined __has_include +#if __has_include () #define INDICATORS_HAVE_CODECVT 1 -#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING +#endif #endif #include #include