From ee355b8619b601a5d4c4b99c8c301ed0a2855d61 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 25 Apr 2020 17:29:35 +0200 Subject: include/proj/util.hpp: recognized a PROJ_INTERNAL_CPP_NAMESPACE to use osgeo::internalproj namespace --- include/proj/util.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/proj/util.hpp b/include/proj/util.hpp index 622709d1..5c6eb329 100644 --- a/include/proj/util.hpp +++ b/include/proj/util.hpp @@ -92,6 +92,15 @@ namespace proj {} #include "nn.hpp" /* To allow customizing the base namespace of PROJ */ +#ifdef PROJ_INTERNAL_CPP_NAMESPACE +#define NS_PROJ osgeo::internalproj +#define NS_PROJ_START \ + namespace osgeo { \ + namespace internalproj { +#define NS_PROJ_END \ + } \ + } +#else #ifndef NS_PROJ #define NS_PROJ osgeo::proj #define NS_PROJ_START \ @@ -101,6 +110,7 @@ namespace proj {} } \ } #endif +#endif // Private-implementation (Pimpl) pattern #define PROJ_OPAQUE_PRIVATE_DATA \ -- cgit v1.2.3