diff --git a/src/stars.cpp b/src/stars.cpp index 5de4d3600..d7430c92b 100644 --- a/src/stars.cpp +++ b/src/stars.cpp @@ -507,10 +507,10 @@ void CPL_write_gdal(NumericMatrix x, CharacterVector fname, CharacterVector driv stop("Type should have length 1"); // #nocov if (Type[0] == "Byte") eType = GDT_Byte; // #nocov -// #if GDAL_VERSION_NUM >= 3070000 -// else if (Type[0] == "Int8") -// eType = GDT_Int8; // #nocov -// #endif +#if GDAL_VERSION_NUM >= 3070000 + else if (Type[0] == "Int8") + eType = GDT_Int8; // #nocov +#endif else if (Type[0] == "UInt16") eType = GDT_UInt16; // #nocov else if (Type[0] == "Int16")