Skip to content

Commit

Permalink
Check if using libstdc++ before include <string_view>.
Browse files Browse the repository at this point in the history
  • Loading branch information
scturtle committed Feb 2, 2018
1 parent 642975e commit 28bdc0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third_party/string_view.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 28bdc0c

Please sign in to comment.