mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
fix variant detection with non-clang compiler
This commit is contained in:
parent
a2baabbf71
commit
50fefd059a
@ -193,9 +193,11 @@
|
|||||||
# include <ciso646>
|
# include <ciso646>
|
||||||
# if defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9)
|
# if defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9)
|
||||||
# define CATCH_CONFIG_NO_CPP17_VARIANT
|
# define CATCH_CONFIG_NO_CPP17_VARIANT
|
||||||
# else
|
# else
|
||||||
# define CATCH_INTERNAL_CONFIG_CPP17_VARIANT
|
# define CATCH_INTERNAL_CONFIG_CPP17_VARIANT
|
||||||
# endif // defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9)
|
# endif // defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9)
|
||||||
|
# else
|
||||||
|
# define CATCH_INTERNAL_CONFIG_CPP17_VARIANT
|
||||||
# endif // defined(__clang__) && (__clang_major__ < 8)
|
# endif // defined(__clang__) && (__clang_major__ < 8)
|
||||||
# endif // __has_include(<variant>) && defined(CATCH_CPP17_OR_GREATER)
|
# endif // __has_include(<variant>) && defined(CATCH_CPP17_OR_GREATER)
|
||||||
#endif // __has_include
|
#endif // __has_include
|
||||||
|
Loading…
Reference in New Issue
Block a user