summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2023-09-24 13:54:28 +0200
committermayeut <mayeut@users.noreply.github.com>2023-09-24 13:54:28 +0200
commitc4b3a91ede1d0301f7f5f50287c0bda35aa7ca7e (patch)
treed89bda6caa4af5440b6d3144498748dba527a568 /src/bin
parent6af39314bdb43cb9c7adcdbc7aa9381af42b52ba (diff)
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.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jp2/converttif.c2
-rw-r--r--src/bin/jp2/index.c2
2 files changed, 2 insertions, 2 deletions
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 <string.h>
#include <ctype.h>
#include <limits.h>
+#include <inttypes.h>
#ifndef OPJ_HAVE_LIBTIFF
# error OPJ_HAVE_LIBTIFF_NOT_DEFINED
@@ -51,7 +52,6 @@
#include <tiffio.h>
#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 <stdio.h>
#include <math.h>
#include <string.h>
+#include <inttypes.h>
#include "openjpeg.h"
#include "index.h"
-#include "opj_inttypes.h"
/* ------------------------------------------------------------------------------------ */