aboutsummaryrefslogtreecommitdiff
path: root/include/proj/internal/include_nlohmann_json.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/proj/internal/include_nlohmann_json.hpp')
-rw-r--r--include/proj/internal/include_nlohmann_json.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/proj/internal/include_nlohmann_json.hpp b/include/proj/internal/include_nlohmann_json.hpp
new file mode 100644
index 00000000..7f7b8fa9
--- /dev/null
+++ b/include/proj/internal/include_nlohmann_json.hpp
@@ -0,0 +1,10 @@
+#if defined(__GNUC__)
+#pragma GCC system_header
+#endif
+
+// to avoid any clash if PROJ users have another version of nlohmann/json.hpp
+#define nlohmann proj_nlohmann
+
+#if !defined(DOXYGEN_ENABLED)
+#include "nlohmann/json.hpp"
+#endif