aboutsummaryrefslogtreecommitdiff
path: root/jchuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'jchuff.c')
-rw-r--r--jchuff.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/jchuff.c b/jchuff.c
index a5c0a1f..fe03591 100644
--- a/jchuff.c
+++ b/jchuff.c
@@ -21,6 +21,7 @@
#include "jpeglib.h"
#include "jchuff.h" /* Declarations shared with jcphuff.c */
#include <limits.h>
+#include <stdint.h>
/*
* NOTE: If USE_CLZ_INTRINSIC is defined, then clz/bsr instructions will be
@@ -376,6 +377,10 @@ dump_buffer (working_state * state)
} \
}
+#if !defined(_WIN32) && !defined(__WORDSIZE)
+#error __WORDSIZE is not defined
+#endif
+
#if __WORDSIZE==64 || defined(_WIN64)
#define EMIT_BITS(code, size) { \