Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorDimitrij Mijoski2021-03-26 02:04:45 +0100
committerMartin Hořeňovský2021-05-26 00:34:23 +0200
commit86f86c4c232b1698bb69fe70a086b3005a2c1de4 (patch)
treefe684cde91fa711add01dfd5d61ed58aae68ccbd /src/catch2/internal
parent023b5306b444ebe3c20a008cdd150cf5510ff36d (diff)
downloadcatch3-86f86c4c232b1698bb69fe70a086b3005a2c1de4.tar.gz
Fix compiling with C++17 + Clang 5 + libstdc++ v5
This basically tests the combination where the compiler supports most of C++17 but the library does not.
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_compiler_capabilities.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp
index a4369e87..956fd13f 100644
--- a/src/catch2/internal/catch_compiler_capabilities.hpp
+++ b/src/catch2/internal/catch_compiler_capabilities.hpp
@@ -222,7 +222,7 @@
// Check if byte is available and usable
# if __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)
# include <cstddef>
- # if __cpp_lib_byte > 0
+ # if defined(__cpp_lib_byte) && (__cpp_lib_byte > 0)
# define CATCH_INTERNAL_CONFIG_CPP17_BYTE
# endif
# endif // __has_include(<cstddef>) && defined(CATCH_CPP17_OR_GREATER)