From c4b3a91ede1d0301f7f5f50287c0bda35aa7ca7e Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 24 Sep 2023 13:54:28 +0200 Subject: Require `stdint.h` & `inttypes.h` With #1450 which goes with 480cc9d49775d018c19ce0e01f6be27858d63d39 "Remove support for non-C99 compilers (like VS2010) that don't support snprintf()", support for MSVC versions prior to vs2015 is dropped: https://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010 This means that all supported MSVC versions do have `stdint.h` & `inttypes.h` now. For non windows platforms, those headers were already mandatory. Make them mandatory for all builds. --- src/bin/jp2/converttif.c | 2 +- src/bin/jp2/index.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin') diff --git a/src/bin/jp2/converttif.c b/src/bin/jp2/converttif.c index c2e7d1cb..e47a48d7 100644 --- a/src/bin/jp2/converttif.c +++ b/src/bin/jp2/converttif.c @@ -43,6 +43,7 @@ #include #include #include +#include #ifndef OPJ_HAVE_LIBTIFF # error OPJ_HAVE_LIBTIFF_NOT_DEFINED @@ -51,7 +52,6 @@ #include #include "openjpeg.h" #include "convert.h" -#include "opj_inttypes.h" /* -->> -->> -->> -->> diff --git a/src/bin/jp2/index.c b/src/bin/jp2/index.c index 3eae2f97..100945bf 100644 --- a/src/bin/jp2/index.c +++ b/src/bin/jp2/index.c @@ -34,9 +34,9 @@ #include #include #include +#include #include "openjpeg.h" #include "index.h" -#include "opj_inttypes.h" /* ------------------------------------------------------------------------------------ */ -- cgit v1.2.3