From 28bdc0cf026c35371e3938cdc118c407090e8499 Mon Sep 17 00:00:00 2001 From: Chao Shen Date: Fri, 2 Feb 2018 08:48:37 +0800 Subject: [PATCH] Check if using libstdc++ before include . --- third_party/string_view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/string_view.h b/third_party/string_view.h index d316fdc9..b96111ff 100644 --- a/third_party/string_view.h +++ b/third_party/string_view.h @@ -1,4 +1,5 @@ -#if __cplusplus >= 201703L || defined(__has_include) && __has_include() +#include // to check __GLIBCXX__ +#if __cplusplus >= 201703L || (defined(__has_include) && __has_include() && !defined(__GLIBCXX__)) #include #else #define STX_NAMESPACE_NAME std