diff options
Diffstat (limited to 'include/proj/internal/include_nlohmann_json.hpp')
| -rw-r--r-- | include/proj/internal/include_nlohmann_json.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/proj/internal/include_nlohmann_json.hpp b/include/proj/internal/include_nlohmann_json.hpp index 68b6836d..6fa5cd2d 100644 --- a/include/proj/internal/include_nlohmann_json.hpp +++ b/include/proj/internal/include_nlohmann_json.hpp @@ -26,13 +26,26 @@ * DEALINGS IN THE SOFTWARE. ****************************************************************************/ +#ifndef INCLUDE_NLOHMANN_JSON_HPP +#define INCLUDE_NLOHMANN_JSON_HPP + #if defined(__GNUC__) #pragma GCC system_header #endif +#ifdef EXTERNAL_NLOHMANN_JSON + +#include <nlohmann/json.hpp> + +#else // !EXTERNAL_NLOHMANN_JSON + // 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" +#include "vendor/nlohmann/json.hpp" #endif + +#endif // EXTERNAL_NLOHMANN_JSON + +#endif // INCLUDE_NLOHMANN_JSON_HPP |
