File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 32
32
33
33
// C++ language standard detection
34
34
// if the user manually specified the used c++ version this is skipped
35
- #if !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
36
- #if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
35
+ #if !defined(JSON_HAS_CPP_23) && !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
36
+ #if (defined(__cplusplus) && __cplusplus > 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG > 202002L)
37
+ #define JSON_HAS_CPP_23
37
38
#define JSON_HAS_CPP_20
38
39
#define JSON_HAS_CPP_17
39
40
#define JSON_HAS_CPP_14
40
- #elif (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
41
+ #elif (defined(__cplusplus) && __cplusplus > 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG > 201703L)
42
+ #define JSON_HAS_CPP_20
43
+ #define JSON_HAS_CPP_17
44
+ #define JSON_HAS_CPP_14
45
+ #elif (defined(__cplusplus) && __cplusplus > 201402L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
41
46
#define JSON_HAS_CPP_17
42
47
#define JSON_HAS_CPP_14
43
- #elif (defined(__cplusplus) && __cplusplus >= 201402L ) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
48
+ #elif (defined(__cplusplus) && __cplusplus > 201103L ) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
44
49
#define JSON_HAS_CPP_14
45
50
#endif
46
51
// the cpp 11 flag is always specified because it is the minimal required version
Original file line number Diff line number Diff line change 34
34
#undef JSON_HAS_CPP_14
35
35
#undef JSON_HAS_CPP_17
36
36
#undef JSON_HAS_CPP_20
37
+ #undef JSON_HAS_CPP_23
37
38
#undef JSON_HAS_FILESYSTEM
38
39
#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
39
40
#undef JSON_HAS_THREE_WAY_COMPARISON
You can’t perform that action at this time.
0 commit comments