summaryrefslogtreecommitdiff
path: root/dev-games/simgear/files/simgear-2024.1.7-fix_gdal.patch
blob: d8625745092fae6b6a4203e80d2aff5ed1ed2ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
see https://gitlab.com/flightgear/simgear/-/work_items/56
fix compile with >=sci-libs/gdal-3.10
see https://github.com/OSGeo/gdal/pull/10605.patch
--- a/simgear/scene/dem/SGDemTile_gdal.cxx
+++ b/simgear/scene/dem/SGDemTile_gdal.cxx
@@ -546,7 +546,7 @@ void SGDemTile::doWarp( int iSrc, char* pszSrcFile, GDALDatasetH hDstDS, char**
 
     if( bHaveNodata )
     {
-        if (CPLIsNan(dfReal))
+        if (std::isnan(dfReal))
             printf( "Using internal nodata values (e.g. nan) for image %s.\n",
                     pszSrcFile );
         else