Skip to content

Commit

Permalink
Add ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
Browse files Browse the repository at this point in the history
  • Loading branch information
winsento committed Apr 3, 2019
1 parent 38fa2a9 commit 04485fa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,9 @@ def CheckProjData(context, silent=False):
ret = context.TryRun("""
// This is narly, could eventually be replaced using https://github.com/OSGeo/proj.4/pull/551]
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif
#include <proj_api.h>
#include <iostream>
#include <cstring>
Expand Down
3 changes: 3 additions & 0 deletions src/proj_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@

#ifdef MAPNIK_USE_PROJ4
// proj4
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif
#include <proj_api.h>
#endif

Expand Down
3 changes: 3 additions & 0 deletions src/projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

#ifdef MAPNIK_USE_PROJ4
// proj4
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif
#include <proj_api.h>
#if defined(MAPNIK_THREADSAFE) && PJ_VERSION < 480
#include <mutex>
Expand Down
3 changes: 3 additions & 0 deletions test/cleanup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#include <unicode/uclean.h>
#ifdef MAPNIK_USE_PROJ4
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif
#include <proj_api.h>
#endif

Expand Down
3 changes: 3 additions & 0 deletions test/unit/projection/proj_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

#ifdef MAPNIK_USE_PROJ4
// proj4
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif
#include <proj_api.h>
#endif

Expand Down

0 comments on commit 04485fa

Please sign in to comment.