Skip to content

Commit 1721032

Browse files
Merge pull request simdjson#2220 from simdjson/adding_macros_for_cpp20_cpp23
fix: add macros to detected C++20 and C++23
2 parents 49e231b + b73877f commit 1721032

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎include/simdjson/compiler_check.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
#endif
1414
#endif
1515

16+
// C++ 23
17+
#if !defined(SIMDJSON_CPLUSPLUS23) && (SIMDJSON_CPLUSPLUS >= 202302L)
18+
#define SIMDJSON_CPLUSPLUS23 1
19+
#endif
20+
21+
// C++ 20
22+
#if !defined(SIMDJSON_CPLUSPLUS20) && (SIMDJSON_CPLUSPLUS >= 202002L)
23+
#define SIMDJSON_CPLUSPLUS20 1
24+
#endif
25+
1626
// C++ 17
1727
#if !defined(SIMDJSON_CPLUSPLUS17) && (SIMDJSON_CPLUSPLUS >= 201703L)
1828
#define SIMDJSON_CPLUSPLUS17 1

0 commit comments

Comments
 (0)