64bit Windows support (patch by Michael Menegakis)

This commit is contained in:
Ludwig Nussel 2010-02-28 09:00:02 +00:00
parent 34d616dbef
commit 760f4a1949
7 changed files with 151 additions and 63 deletions

View file

@ -14,6 +14,9 @@
* JPEG library. Most applications need only include jpeglib.h.
*/
#ifdef __WIN64__
#include "basetsd.h"
#endif
#ifdef _MSC_VER

View file

@ -158,9 +158,11 @@ typedef short INT16;
/* INT32 must hold at least signed 32-bit values. */
/* MinGW basetsd.h defines INT32 - don't redefine it */
#ifndef __WIN64
#if !(defined __MINGW32__ && defined _BASETSD_H)
typedef long INT32;
#endif
#endif
/* Datatype used for image dimensions. The JPEG standard only supports
* images up to 64K*64K due to 16-bit fields in SOF markers. Therefore