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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-05-10 20:48:45 +0200
committerMartin Hořeňovský2026-05-10 20:48:58 +0200
commit15b9393f0f32327e28833c5032b2c4e02c31d82c (patch)
treee9fe2a0d6dd96b865c6eedc6c7157c2513095b9e
parenta18badd10fce6c3e087eef82699f371cf6f99fa7 (diff)
downloadcatch3-15b9393f0f32327e28833c5032b2c4e02c31d82c.tar.gz
Don't check if __cplusplus is defined
-rw-r--r--src/catch2/internal/catch_compiler_capabilities.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp
index 2bbee6bc..d0c79243 100644
--- a/src/catch2/internal/catch_compiler_capabilities.hpp
+++ b/src/catch2/internal/catch_compiler_capabilities.hpp
@@ -27,16 +27,12 @@
#include <catch2/internal/catch_platform.hpp>
#include <catch2/catch_user_config.hpp>
-#ifdef __cplusplus
-
-# if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
-# define CATCH_CPP17_OR_GREATER
-# endif
-
-# if (__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
-# define CATCH_CPP20_OR_GREATER
-# endif
+#if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
+# define CATCH_CPP17_OR_GREATER
+#endif
+#if (__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
+# define CATCH_CPP20_OR_GREATER
#endif
// Only GCC compiler should be used in this block, so other compilers trying to