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/branches/1.0.x@665 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -41,6 +41,10 @@ cjpeg.
|
||||
occurred when the application was invoked using I/O redirection
|
||||
(cjpeg <inputfile >output.jpg).
|
||||
|
||||
[8] 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.0.1
|
||||
=====
|
||||
|
||||
@@ -21,6 +21,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
|
||||
|
||||
Reference in New Issue
Block a user