mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Check if using libstdc++ before include <string_view>.
This commit is contained in:
parent
642975ea17
commit
28bdc0cf02
3
third_party/string_view.h
vendored
3
third_party/string_view.h
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user