summaryrefslogtreecommitdiff
blob: 0c3b8ceec26931157d49c1cb2dfb67bcc0208de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix compilation with -DDEBUG and GDAL >= 2
Author: Even Rouault <even.rouault@spatialys.com>
Origin: https://github.com/libLAS/libLAS/commit/72f7709bf1dfd3473b64cdba0259363d3beea3c3

--- a/src/gt_wkt_srs.cpp
+++ b/src/gt_wkt_srs.cpp
@@ -90,7 +90,11 @@ static const char *papszDatumEquiv[] =
 /*                       LibgeotiffOneTimeInit()                        */
 /************************************************************************/
 
+#if GDAL_VERSION_MAJOR >= 2
+static CPLMutex* hMutex = NULL;
+#else
 static void* hMutex = NULL;
+#endif
 
 void LibgeotiffOneTimeInit() 
 {