Use JSON_HAS_CPP_17 only after it has been defined
This commit is contained in:
1 parent
713038fa27
commit
1b846c9d81
4 files changed
+16
-32
No files matched your search
@@ -27,6 +27,14 @@
|
||||
#define JSON_HAS_CPP_14
|
||||
#endif
|
||||
|
||||
#ifdef JSON_HAS_CPP_17
|
||||
#if __has_include(<optional>)
|
||||
#include <optional>
|
||||
#elif __has_include(<experimental/optional>)
|
||||
#include <experimental/optional>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// disable float-equal warnings on GCC/clang
|
||||
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
|
||||
#pragma GCC diagnostic push
|
||||
|
||||
Reference in new issue
Block a user