Skip to content

Commit d149b71

Browse files
committed
include/proj/util.hpp: recognized a PROJ_INTERNAL_CPP_NAMESPACE to use osgeo::internalproj namespace
1 parent 372a1dd commit d149b71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/proj/util.hpp

+10
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ namespace proj {}
9292
#include "nn.hpp"
9393

9494
/* To allow customizing the base namespace of PROJ */
95+
#ifdef PROJ_INTERNAL_CPP_NAMESPACE
96+
#define NS_PROJ osgeo::internalproj
97+
#define NS_PROJ_START \
98+
namespace osgeo { \
99+
namespace internalproj {
100+
#define NS_PROJ_END \
101+
} \
102+
}
103+
#else
95104
#ifndef NS_PROJ
96105
#define NS_PROJ osgeo::proj
97106
#define NS_PROJ_START \
@@ -101,6 +110,7 @@ namespace proj {}
101110
} \
102111
}
103112
#endif
113+
#endif
104114

105115
// Private-implementation (Pimpl) pattern
106116
#define PROJ_OPAQUE_PRIVATE_DATA \

0 commit comments

Comments
 (0)