Check if using libstdc++ before include <string_view>.

This commit is contained in:
Chao Shen 2018-02-02 08:48:37 +08:00 committed by scturtle
parent 642975ea17
commit 28bdc0cf02

View File

@ -1,4 +1,5 @@
#if __cplusplus >= 201703L || defined(__has_include) && __has_include(<string_view>)
#include <cstddef> // to check __GLIBCXX__
#if __cplusplus >= 201703L || (defined(__has_include) && __has_include(<string_view>) && !defined(__GLIBCXX__))
#include <string_view>
#else
#define STX_NAMESPACE_NAME std