Skip to content

Commit 6a7e951

Browse files
swiss-knightnyalldawson
authored andcommitted
Add ACCEPT_USE_OF_DEPRECATED_PROJ_API_H macro for proj_api.h to work with new release of proj4.
1 parent 9635c2a commit 6a7e951

6 files changed

+19
-0
lines changed

src/app/qgisapp.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
344344
#ifdef PROJ_HAS_INFO
345345
#include <proj.h>
346346
#endif
347+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
348+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
349+
#endif
347350
#include <proj_api.h>
348351

349352
//

src/app/qgscustomprojectiondialog.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
//proj4 includes
4141
extern "C"
4242
{
43+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
44+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
45+
#endif
4346
#include <proj_api.h>
4447
}
4548

src/core/qgscoordinatereferencesystem.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
#include "qgssettings.h"
3939

4040
#include <sqlite3.h>
41+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
42+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
43+
#endif
4144
#include <proj_api.h>
4245

4346
//gdal and ogr includes (needed for == operator)
@@ -46,6 +49,7 @@
4649
#include <cpl_conv.h>
4750
#include <cpl_csv.h>
4851

52+
4953
//! The length of the string "+lat_1="
5054
const int LAT_PREFIX_LEN = 7;
5155

src/core/qgscoordinatetransform.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434

3535
extern "C"
3636
{
37+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
38+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
39+
#endif
3740
#include <proj_api.h>
3841
}
3942
#include <sqlite3.h>

src/core/qgscoordinatetransform_p.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
extern "C"
2323
{
24+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
25+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
26+
#endif
2427
#include <proj_api.h>
2528
}
2629
#include <sqlite3.h>

tests/src/core/testqgscoordinatereferencesystem.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Email : sherman at mrcc dot com
2424
#include "qgsvectorlayer.h"
2525
#include "qgsproject.h"
2626

27+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
28+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
29+
#endif
2730
#include <proj_api.h>
2831
#include <gdal.h>
2932
#include <cpl_conv.h>

0 commit comments

Comments
 (0)