aboutsummaryrefslogtreecommitdiff
path: root/include/proj
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-25 17:29:35 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-04-25 17:29:35 +0200
commitee355b8619b601a5d4c4b99c8c301ed0a2855d61 (patch)
tree403a40eafa59ffba0264fa1593623406f7c230cc /include/proj
parent1c236551a2ef54a4788bfa9c17a194263f0f8d43 (diff)
downloadPROJ-ee355b8619b601a5d4c4b99c8c301ed0a2855d61.tar.gz
PROJ-ee355b8619b601a5d4c4b99c8c301ed0a2855d61.zip
include/proj/util.hpp: recognized a PROJ_INTERNAL_CPP_NAMESPACE to use osgeo::internalproj namespace
Diffstat (limited to 'include/proj')
-rw-r--r--include/proj/util.hpp10
1 files changed, 10 insertions, 0 deletions
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 \