summaryrefslogtreecommitdiff
path: root/src/jpeg-6b
diff options
context:
space:
mode:
Diffstat (limited to 'src/jpeg-6b')
-rw-r--r--src/jpeg-6b/jinclude.h3
-rw-r--r--src/jpeg-6b/jmorecfg.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/jpeg-6b/jinclude.h b/src/jpeg-6b/jinclude.h
index 1c5515cd..33d2cd5b 100644
--- a/src/jpeg-6b/jinclude.h
+++ b/src/jpeg-6b/jinclude.h
@@ -14,6 +14,9 @@
* JPEG library. Most applications need only include jpeglib.h.
*/
+#ifdef __WIN64__
+#include "basetsd.h"
+#endif
#ifdef _MSC_VER
diff --git a/src/jpeg-6b/jmorecfg.h b/src/jpeg-6b/jmorecfg.h
index f8020071..d677127d 100644
--- a/src/jpeg-6b/jmorecfg.h
+++ b/src/jpeg-6b/jmorecfg.h
@@ -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 */
-#if !(defined __MINGW32__ && defined _BASETSD_H)
+#ifndef __WIN64
+#if !(defined __MINGW32__ && (defined _BASETSD_H || 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