Skip to content

Commit 15b9393

Browse files
committed
Don't check if __cplusplus is defined
1 parent a18badd commit 15b9393

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

src/catch2/internal/catch_compiler_capabilities.hpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,12 @@
2727
#include <catch2/internal/catch_platform.hpp>
2828
#include <catch2/catch_user_config.hpp>
2929

30-
#ifdef __cplusplus
31-
32-
# if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
33-
# define CATCH_CPP17_OR_GREATER
34-
# endif
35-
36-
# if (__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
37-
# define CATCH_CPP20_OR_GREATER
38-
# endif
30+
#if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
31+
# define CATCH_CPP17_OR_GREATER
32+
#endif
3933

34+
#if (__cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
35+
# define CATCH_CPP20_OR_GREATER
4036
#endif
4137

4238
// Only GCC compiler should be used in this block, so other compilers trying to

0 commit comments

Comments
 (0)