summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/opj_includes.h
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/lib/openjp2/opj_includes.h
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/lib/openjp2/opj_includes.h')
-rw-r--r--src/lib/openjp2/opj_includes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/openjp2/opj_includes.h b/src/lib/openjp2/opj_includes.h
index 0a8628c9..13613ce5 100644
--- a/src/lib/openjp2/opj_includes.h
+++ b/src/lib/openjp2/opj_includes.h
@@ -55,6 +55,8 @@
#include <ctype.h>
#include <assert.h>
#include <limits.h>
+#include <stdint.h>
+#include <inttypes.h>
/*
Use fseeko() and ftello() if they are available since they use
@@ -218,7 +220,6 @@ typedef unsigned int OPJ_BITFIELD;
#define OPJ_UNUSED(x) (void)x
-#include "opj_inttypes.h"
#include "opj_clock.h"
#include "opj_malloc.h"
#include "event.h"