Skip to content

Commit

Permalink
Fix proj4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 5, 2019
1 parent 70a8d49 commit 250d0d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgscustomprojectiondialog.cpp
Expand Up @@ -472,7 +472,7 @@ void QgsCustomProjectionDialog::pbnCalculate_clicked()

#if PROJ_VERSION_MAJOR<6
northing *= DEG_TO_RAD;
easting * = DEG_TO_RAD;
easting *= DEG_TO_RAD;
#endif

if ( !okN || !okE )
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgscoordinatetransform_p.h
Expand Up @@ -34,6 +34,7 @@
#include <QSharedData>

#if PROJ_VERSION_MAJOR<6
typedef void *projPJ;
#ifndef USE_THREAD_LOCAL
#include <QThreadStorage>
#endif
Expand All @@ -48,7 +49,7 @@ typedef PJ *ProjData;
#include "qgscoordinatetransformcontext.h"

#if PROJ_VERSION_MAJOR<6
typedef void *projPJ;

typedef void *projCtx;

/**
Expand Down

0 comments on commit 250d0d1

Please sign in to comment.