aboutsummaryrefslogtreecommitdiff
path: root/include/proj/internal/include_nlohmann_json.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-08-09 12:59:49 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-08-09 14:42:39 +0200
commit81bd57dfd8cfae609288643d1b09a4805f1bcded (patch)
tree947f9093cdc8043d9cd822bb828407d2f82dc28d /include/proj/internal/include_nlohmann_json.hpp
parent89f2cc7ec4178a369e73e9cd115a2552a55d870a (diff)
downloadPROJ-81bd57dfd8cfae609288643d1b09a4805f1bcded.tar.gz
PROJ-81bd57dfd8cfae609288643d1b09a4805f1bcded.zip
createFromUserInput(): add capability to import PROJJSON
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