]> granicus.if.org Git - libjpeg-turbo/commitdiff
Fix build with older MinGW releases
authorCameron Cawley <ccawley2011@gmail.com>
Tue, 6 Mar 2018 22:10:14 +0000 (22:10 +0000)
committerDRC <information@libjpeg-turbo.org>
Sat, 17 Mar 2018 00:06:12 +0000 (19:06 -0500)
Some MinGW implementations need stdint.h in order to define SIZE_MAX.

Regression caused by a09ba29a55b9a43d346421210d94370065eeaf53 and
not fully fixed by a0047bdea4d11dfeefb9ea797865b1a2ea0a665e.

Closes #220

ChangeLog.md
jmemmgr.c

index 406c6db272c4ec78cc8d225f5bf2c2420e18202e..d6998d8cc96cd90df1bcf57fc07328a1d28483fc 100644 (file)
@@ -11,6 +11,9 @@ actual security issues, should they arise in the future.
 algorithm that caused incorrect dithering in the output image.  This algorithm
 now produces bitwise-identical results to the unmerged algorithms.
 
+3. Fixed a build error when building with older MinGW releases (regression
+caused by 1.5.1[7].)
+
 
 1.5.3
 =====
index 8dfb633dae2fc05ecc1f5161c9f030e5fe7adb6e..40621cd2b979c09e5156d00605fc61ff1887cb97 100644 (file)
--- a/jmemmgr.c
+++ b/jmemmgr.c
@@ -32,7 +32,7 @@
 #include "jinclude.h"
 #include "jpeglib.h"
 #include "jmemsys.h"            /* import the system-dependent declarations */
-#ifndef _WIN32
+#if !defined(_MSC_VER) || _MSC_VER > 1600
 #include <stdint.h>
 #endif
 #include <limits.h>