openjpeg.h: make sure to include opj_config.h (fixes #1514)
authorEven Rouault <even.rouault@spatialys.com>
Tue, 27 Feb 2024 11:50:37 +0000 (12:50 +0100)
committerEven Rouault <even.rouault@spatialys.com>
Tue, 27 Feb 2024 11:50:40 +0000 (12:50 +0100)
It was previously included by openjpeg.h

src/lib/openjp2/openjpeg.h

index a421143a53f0c09299ea7f84226ff557bcf56c8d..67d168bb57857fbc2a26361fd03896ac979343c7 100644 (file)
@@ -138,6 +138,8 @@ typedef int64_t  OPJ_OFF_T; /* 64-bit file offset type */
 #include <stdio.h>
 typedef size_t   OPJ_SIZE_T;
 
+#include "opj_config.h"
+
 /* Avoid compile-time warning because parameter is not used */
 #define OPJ_ARG_NOT_USED(x) (void)(x)