mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
__has_include to #include <string_view>
@scturtle's suggestion
This commit is contained in:
parent
5b6945d909
commit
8bb5d47377
6
third_party/string_view.h
vendored
6
third_party/string_view.h
vendored
@ -1,6 +1,6 @@
|
||||
#if __cplusplus < 201703L
|
||||
#if __cplusplus >= 201703L || defined(__has_include) && __has_include(<string_view>)
|
||||
#include <string_view>
|
||||
#else
|
||||
#define STX_NAMESPACE_NAME std
|
||||
#include "string_view.hpp"
|
||||
#else
|
||||
#include <string_view>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user