From 72e3d1ca39a4a1afcb4bafee0ca58026ad7d400c Mon Sep 17 00:00:00 2001 From: Tamas Szekeres Date: Sun, 22 Oct 2023 15:24:42 +0200 Subject: [PATCH] Fixed MSVC2017 builds (#8594) --- frmts/gtiff/geotiff.cpp | 1 + frmts/hdf4/hdf4dataset.cpp | 1 + frmts/hdf5/hdf5dataset.cpp | 1 + ogr/ogrsf_frmts/gpkg/ogr_geopackage.h | 1 + 4 files changed, 4 insertions(+) diff --git a/frmts/gtiff/geotiff.cpp b/frmts/gtiff/geotiff.cpp index 026cd3c5ae3b..4978a30d9d82 100644 --- a/frmts/gtiff/geotiff.cpp +++ b/frmts/gtiff/geotiff.cpp @@ -39,6 +39,7 @@ #include "tiffio.h" #include "tif_jxl.h" #include "xtiffio.h" +#include // Needed to expose WEBP_LOSSLESS option #ifdef WEBP_SUPPORT diff --git a/frmts/hdf4/hdf4dataset.cpp b/frmts/hdf4/hdf4dataset.cpp index 3503e5925bb9..5b87e8a861a5 100644 --- a/frmts/hdf4/hdf4dataset.cpp +++ b/frmts/hdf4/hdf4dataset.cpp @@ -41,6 +41,7 @@ #include "hdf4compat.h" #include "hdf4dataset.h" +#include extern const char *const pszGDALSignature; diff --git a/frmts/hdf5/hdf5dataset.cpp b/frmts/hdf5/hdf5dataset.cpp index cffdbe852f91..6562e02b90dc 100644 --- a/frmts/hdf5/hdf5dataset.cpp +++ b/frmts/hdf5/hdf5dataset.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include "cpl_conv.h" #include "cpl_error.h" diff --git a/ogr/ogrsf_frmts/gpkg/ogr_geopackage.h b/ogr/ogrsf_frmts/gpkg/ogr_geopackage.h index d5b16392f209..fcd90e983430 100644 --- a/ogr/ogrsf_frmts/gpkg/ogr_geopackage.h +++ b/ogr/ogrsf_frmts/gpkg/ogr_geopackage.h @@ -45,6 +45,7 @@ #include #include #include +#include #define UNKNOWN_SRID -2 #define DEFAULT_SRID 0