Skip to content

Commit c23c3d2

Browse files
committed
fix build with GDAL1 (followup 4f76722)
1 parent 3e41230 commit c23c3d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/georeferencer/qgsgeoreftransform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include <cassert>
2727
#include <limits>
2828

29+
#if !defined(GDAL_COMPUTE_VERSION) || GDAL_VERSION_NUM < GDAL_COMPUTE_VERSION(2,0,0)
30+
#define CPLsnprintf snprintf
31+
#endif
32+
2933
/**
3034
* A simple transform which is paremetrized by a translation and anistotropic scale.
3135
*/

0 commit comments

Comments
 (0)