diff --git a/frmts/openjpeg/openjpegdataset.cpp b/frmts/openjpeg/openjpegdataset.cpp index 5978882bc9..72cc7b9559 100644 --- a/frmts/openjpeg/openjpegdataset.cpp +++ b/frmts/openjpeg/openjpegdataset.cpp @@ -34,14 +34,8 @@ #pragma clang diagnostic ignored "-Wdocumentation" #endif -#if defined(OPENJPEG_VERSION) && OPENJPEG_VERSION >= 20200 -#include -#elif defined(OPENJPEG_VERSION) && OPENJPEG_VERSION >= 20100 -#include -#else #include /* openjpeg.h needs FILE* */ -#include -#endif +#include #ifdef __clang__ #pragma clang diagnostic pop