mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-24 03:44:24 +08:00
- Detect libstdc++ from gcc-5 and never.
This commit is contained in:
parent
fc875735dd
commit
6ab0cb2844
@ -240,6 +240,9 @@
|
|||||||
#define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW
|
#define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW
|
||||||
#elif defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4)) && (__cplusplus >= 201402)
|
#elif defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4)) && (__cplusplus >= 201402)
|
||||||
#define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW
|
#define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW
|
||||||
|
#elif defined(__GLIBCXX__) && defined(_GLIBCXX_USE_DUAL_ABI) && (__cplusplus >= 201402)
|
||||||
|
// macro _GLIBCXX_USE_DUAL_ABI is always defined in libstdc++ from gcc-5 and newer
|
||||||
|
#define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GHC_HAS_STD_STRING_VIEW)
|
#if defined(GHC_HAS_STD_STRING_VIEW)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user