aboutsummaryrefslogtreecommitdiff
path: root/jdhuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'jdhuff.c')
-rw-r--r--jdhuff.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/jdhuff.c b/jdhuff.c
index 7dc1328..583ee11 100644
--- a/jdhuff.c
+++ b/jdhuff.c
@@ -22,6 +22,7 @@
#include "jdhuff.h" /* Declarations shared with jdphuff.c */
#include "jpegcomp.h"
#include "jstdhuff.c"
+#include <stdint.h>
/*
@@ -419,6 +420,10 @@ jpeg_fill_bit_buffer (bitread_working_state * state,
} \
}
+#if !defined(_WIN32) && !defined(__WORDSIZE)
+#error __WORDSIZE is not defined
+#endif
+
#if __WORDSIZE == 64 || defined(_WIN64)
/* Pre-fetch 48 bytes, because the holding register is 64-bit */