Prevent jmorecfg.h from re-defining INT32 and INT16 if those types have already been defined by the Windows system headers.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@663 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2011-06-21 04:56:02 +00:00
2 changed files with 11 additions and 0 deletions

View File

@@ -53,6 +53,10 @@ v7 or v8 emulation or arithmetic coding support was enabled. Note that to
achieve full ABI compatibility with jpeg-6b, it is necessary to build
libjpeg-turbo without arithmetic coding support.
[14] Fixed an issue whereby Windows applications that used libjpeg-turbo would
fail to compile if the Windows system headers were included before jpeglib.h.
This issue was caused by a conflict in the definition of the INT32 type.
1.1.1
=====

View File

@@ -25,6 +25,13 @@ typedef unsigned char boolean;
#endif
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
/* Define "INT32" as int, not long, per Windows custom */
#if !(defined(_BASETSD_H_) || defined(_BASETSD_H)) /* don't conflict if basetsd.h already read */
typedef short INT16;
typedef signed int INT32;
#endif
#define XMD_H /* prevent jmorecfg.h from redefining it */
#define inline __inline
#ifdef JPEG_INTERNALS