this->Reader->DriverShortName = GDALGetDriverShortName(driver);
this->Reader->DriverLongName = GDALGetDriverLongName(driver);
+#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
+ CSLConstList papszMetaData = GDALGetMetadata(this->GDALData, nullptr);
+#else
char** papszMetaData = GDALGetMetadata(this->GDALData, nullptr);
+#endif
if (CSLCount(papszMetaData) > 0)
{
for (int i = 0; papszMetaData[i] != nullptr; ++i)
{
std::vector<std::string> domainMetaData;
+#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
+ CSLConstList papszMetadata = GDALGetMetadata(this->Impl->GDALData, domain.c_str());
+#else
char** papszMetadata = GDALGetMetadata(this->Impl->GDALData, domain.c_str());
+#endif
if (CSLCount(papszMetadata) > 0)
{