summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/t1_ht_generate_luts.c
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/t1_ht_generate_luts.c
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/t1_ht_generate_luts.c')
-rw-r--r--src/lib/openjp2/t1_ht_generate_luts.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/openjp2/t1_ht_generate_luts.c b/src/lib/openjp2/t1_ht_generate_luts.c
index 6876e3fd..22382a5a 100644
--- a/src/lib/openjp2/t1_ht_generate_luts.c
+++ b/src/lib/openjp2/t1_ht_generate_luts.c
@@ -38,12 +38,7 @@
#include <string.h>
#include <stdio.h>
#include <assert.h>
-
-typedef int OPJ_BOOL;
-#define OPJ_TRUE 1
-#define OPJ_FALSE 0
-
-#include "opj_stdint.h"
+#include <stdint.h>
typedef int8_t OPJ_INT8;
typedef uint8_t OPJ_UINT8;
@@ -53,6 +48,9 @@ typedef int32_t OPJ_INT32;
typedef uint32_t OPJ_UINT32;
typedef int64_t OPJ_INT64;
typedef uint64_t OPJ_UINT64;
+typedef int OPJ_BOOL;
+#define OPJ_TRUE 1
+#define OPJ_FALSE 0
//************************************************************************/
/** @brief HT decoding tables, as given in the standard