The Independent JPEG Group's JPEG software v8
diff --git a/jmorecfg.h b/jmorecfg.h
index c610bc2..928d052 100644
--- a/jmorecfg.h
+++ b/jmorecfg.h
@@ -160,11 +160,13 @@
#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
#ifndef _BASETSD_H_ /* Microsoft defines it in basetsd.h */
+#ifndef _BASETSD_H /* MinGW is slightly different */
#ifndef QGLOBAL_H /* Qt defines it in qglobal.h */
typedef long INT32;
#endif
#endif
#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