Fix build with older MinGW releases

Some MinGW implementations need stdint.h in order to define SIZE_MAX.

Regression caused by a09ba29a55 and
not fully fixed by a0047bdea4.

Closes #220
This commit is contained in:
Cameron Cawley
2018-03-06 22:10:14 +00:00
committed by DRC
parent d45434fe19
commit c743009717
2 changed files with 4 additions and 1 deletions

View 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 algorithm that caused incorrect dithering in the output image. This algorithm
now produces bitwise-identical results to the unmerged algorithms. 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 1.5.3
===== =====

View File

@@ -32,7 +32,7 @@
#include "jinclude.h" #include "jinclude.h"
#include "jpeglib.h" #include "jpeglib.h"
#include "jmemsys.h" /* import the system-dependent declarations */ #include "jmemsys.h" /* import the system-dependent declarations */
#ifndef _WIN32 #if !defined(_MSC_VER) || _MSC_VER > 1600
#include <stdint.h> #include <stdint.h>
#endif #endif
#include <limits.h> #include <limits.h>