From 8bb5d47377b1b63b1659ac03f0e10b27e4b41794 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 1 Feb 2018 08:34:27 -0800 Subject: [PATCH] __has_include to #include @scturtle's suggestion --- third_party/string_view.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/string_view.h b/third_party/string_view.h index e0067ba9..d316fdc9 100644 --- a/third_party/string_view.h +++ b/third_party/string_view.h @@ -1,6 +1,6 @@ -#if __cplusplus < 201703L +#if __cplusplus >= 201703L || defined(__has_include) && __has_include() +#include +#else #define STX_NAMESPACE_NAME std #include "string_view.hpp" -#else -#include #endif