aboutsummaryrefslogtreecommitdiff
path: root/include/proj/internal/include_nlohmann_json.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-08-20 13:22:01 +0200
committerGitHub <noreply@github.com>2019-08-20 13:22:01 +0200
commit2c9c015a6529548f5a5d448c78bc9b565d751590 (patch)
tree2597c59e8270f1480785c97f7441ee0b295c29b3 /include/proj/internal/include_nlohmann_json.hpp
parente52fc2aa58504e6f0658da821bdd543d7a39df34 (diff)
parentcad1c5cf61fc00759bf4ad17b0b34f57f4945de6 (diff)
downloadPROJ-2c9c015a6529548f5a5d448c78bc9b565d751590.tar.gz
PROJ-2c9c015a6529548f5a5d448c78bc9b565d751590.zip
Merge pull request #1547 from rouault/json_export
Add CRS JSON export (refs #1545)
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