Skip to content

Commit

Permalink
fixed amalgamation file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pfahler committed Apr 26, 2021
1 parent 5a77314 commit d140a1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2229,8 +2229,8 @@ JSON_HEDLEY_DIAGNOSTIC_POP
#endif

// C++ language standard detection
// if the user wants to manually specify the used c++ version this is skipped
#ifndef JSON_VERSION_IS_PREDEFINED
// if the user manually specified the used c++ version this is skipped
#if !defined(JSON_HAS_CPP_20) && !defined(JSON_HAS_CPP_17) && !defined(JSON_HAS_CPP_14) && !defined(JSON_HAS_CPP_11)
#if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
#define JSON_HAS_CPP_20
#define JSON_HAS_CPP_17
Expand All @@ -2241,6 +2241,8 @@ JSON_HEDLEY_DIAGNOSTIC_POP
#elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
#define JSON_HAS_CPP_14
#endif
// the cpp 11 flag is always specified because it is the minimal required version
#define JSON_HAS_CPP_11
#endif

// disable documentation warnings on clang
Expand Down

0 comments on commit d140a1c

Please sign in to comment.