]> granicus.if.org Git - libjpeg-turbo/commitdiff
Restore backward compatibility with MSVC < 2010 (broken by r1541)
authorDRC <dcommander@users.sourceforge.net>
Thu, 30 Apr 2015 09:05:53 +0000 (09:05 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 30 Apr 2015 09:05:53 +0000 (09:05 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1543 632fc199-4ca6-4c93-a231-07263d6284db

jchuff.c
jconfig.h.in
jdhuff.c

index fe03591d633e1a3c731480a806dfd3854d07540e..67ddf518eee44dc4503273629c895a2edb25ea62 100644 (file)
--- 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
index 42d86f244373adde9708dd392ae7c657a5301a99..fbf64a586d0638880cb6d63fece89df630e0077c 100644 (file)
@@ -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
 
index 583ee114d4c367e9a11df303edc897141e264981..03e3949219f7617ba035a0855d2bf67bf4a61501 100644 (file)
--- 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
 
 
 /*