mirror of https://github.com/catchorg/Catch2.git
Issue 1992: Better c++17 std::byte detection
This fixed buld errors for ubuntu-16 + clang and similar situations where C++17 is supported in the compiler but not the default C++ standard library.
This commit is contained in:
parent
2c1c02f7e7
commit
5ad1a4fe61
|
@ -240,7 +240,10 @@
|
||||||
|
|
||||||
// Check if byte is available and usable
|
// Check if byte is available and usable
|
||||||
# if __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
|
# if __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
|
||||||
|
# include <cstddef>
|
||||||
|
# if __cpp_lib_byte > 0
|
||||||
# define CATCH_INTERNAL_CONFIG_CPP17_BYTE
|
# define CATCH_INTERNAL_CONFIG_CPP17_BYTE
|
||||||
|
# endif
|
||||||
# endif // __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
|
# endif // __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
|
||||||
|
|
||||||
// Check if variant is available and usable
|
// Check if variant is available and usable
|
||||||
|
|
Loading…
Reference in New Issue