Package: liblas / 1.8.1-10

0001-Fix-compilation-with-DDEBUG-and-GDAL-2.patch Patch series | download
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() 
 {