Skip to content

Commit 6c9df8b

Browse files
committedApr 19, 2019
fix building with proj6
1 parent 84ec951 commit 6c9df8b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed
 

‎src/core/processing/qgsprocessingfeedback.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#include "qgsgeos.h"
2020
#include <ogr_api.h>
2121
#include <gdal_version.h>
22-
#if PROJ_VERSION_MAJOR > 4
23-
#include <proj.h>
24-
#else
25-
#include <proj_api.h>
22+
23+
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
24+
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
2625
#endif
26+
#include <proj_api.h>
2727

2828
void QgsProcessingFeedback::setProgressText( const QString & )
2929
{
@@ -64,13 +64,7 @@ void QgsProcessingFeedback::pushVersionInfo()
6464
pushDebugInfo( tr( "Qt version: %1" ).arg( qVersion() ) );
6565
pushDebugInfo( tr( "GDAL version: %1" ).arg( GDALVersionInfo( "RELEASE_NAME" ) ) );
6666
pushDebugInfo( tr( "GEOS version: %1" ).arg( GEOSversion() ) );
67-
68-
#if PROJ_VERSION_MAJOR > 4
69-
PJ_INFO info = proj_info();
70-
pushDebugInfo( tr( "PROJ version: %1" ).arg( info.release ) );
71-
#else
7267
pushDebugInfo( tr( "PROJ version: %1" ).arg( PJ_VERSION ) );
73-
#endif
7468
}
7569

7670

0 commit comments

Comments
 (0)
Please sign in to comment.