rename PROJ_VERSION to MAPNIK_PROJ_VERSION to avoid clashes with libproj

This commit is contained in:
Artem Pavlenko 2021-03-25 16:38:21 +00:00
parent 5dfd1a24fc
commit 3489bdbe36
2 changed files with 2 additions and 2 deletions

View file

@ -1720,7 +1720,7 @@ if not preconfigured:
env['SKIPPED_DEPS'].append('proj-min-version') env['SKIPPED_DEPS'].append('proj-min-version')
else: else:
env.Append(CPPDEFINES = define) env.Append(CPPDEFINES = define)
env.Append(CPPDEFINES = "-DPROJ_VERSION=%d" % version) env.Append(CPPDEFINES = "-DMAPNIK_PROJ_VERSION=%d" % version)
else: else:
env.Append(CPPDEFINES = define) env.Append(CPPDEFINES = define)
else: else:

View file

@ -39,7 +39,7 @@ MAPNIK_DISABLE_WARNING_POP
// fwd decl // fwd decl
#if PROJ_VERSION >= 80000 #if MAPNIK_PROJ_VERSION >= 80000
struct pj_ctx; struct pj_ctx;
using PJ_CONTEXT = struct pj_ctx; using PJ_CONTEXT = struct pj_ctx;
#else #else