diff --git a/Modules/IO/IOGDAL/test/otbGDALImageIOTestWriteMetadata.cxx b/Modules/IO/IOGDAL/test/otbGDALImageIOTestWriteMetadata.cxx index 49c42ff528cfe90b95f2f0d095eb3a83e9ca8bc1..32898ed12d78ff7401e873c5f3dd911cb660c5b0 100644 --- a/Modules/IO/IOGDAL/test/otbGDALImageIOTestWriteMetadata.cxx +++ b/Modules/IO/IOGDAL/test/otbGDALImageIOTestWriteMetadata.cxx @@ -23,10 +23,19 @@ #include <fstream> #include <sstream> + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4251) +#include "gdal_priv.h" +#include "cpl_string.h" +#include "ogr_spatialref.h" +#pragma warning(pop) +#else #include "gdal_priv.h" #include "cpl_string.h" #include "ogr_spatialref.h" -#include "itkMacro.h" +#endif // Class to store ProjRef, GEOTransform and GCP info class DatasetInfoGDAL diff --git a/Modules/IO/IOGDAL/test/otbGDALReadPxlComplex.cxx b/Modules/IO/IOGDAL/test/otbGDALReadPxlComplex.cxx index a6115d996b0bc10d81c7d1ae5177832a64ed28f9..eea86c529e0bb1c2fe703853eb4dad6e669659ec 100644 --- a/Modules/IO/IOGDAL/test/otbGDALReadPxlComplex.cxx +++ b/Modules/IO/IOGDAL/test/otbGDALReadPxlComplex.cxx @@ -19,8 +19,17 @@ */ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4251) #include "gdal_priv.h" #include "ogr_core.h" +#pragma warning(pop) +#else +#include "gdal_priv.h" +#include "ogr_core.h" +#endif + #include <iostream> #include <complex>