aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jchuff.c2
-rw-r--r--jconfig.h.in3
-rw-r--r--jdhuff.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/jchuff.c b/jchuff.c
index fe03591..67ddf51 100644
--- a/jchuff.c
+++ b/jchuff.c
@@ -21,7 +21,9 @@
#include "jpeglib.h"
#include "jchuff.h" /* Declarations shared with jcphuff.c */
#include <limits.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
/*
* NOTE: If USE_CLZ_INTRINSIC is defined, then clz/bsr instructions will be
diff --git a/jconfig.h.in b/jconfig.h.in
index 42d86f2..fbf64a5 100644
--- a/jconfig.h.in
+++ b/jconfig.h.in
@@ -32,6 +32,9 @@
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
/* Define to 1 if the system has the type `unsigned char'. */
#undef HAVE_UNSIGNED_CHAR
diff --git a/jdhuff.c b/jdhuff.c
index 583ee11..03e3949 100644
--- a/jdhuff.c
+++ b/jdhuff.c
@@ -22,7 +22,9 @@
#include "jdhuff.h" /* Declarations shared with jdphuff.c */
#include "jpegcomp.h"
#include "jstdhuff.c"
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
/*