[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failure building gui under Windows
From: |
Adam Fedor |
Subject: |
Re: Failure building gui under Windows |
Date: |
Wed, 16 Feb 2005 14:49:28 -0700 |
On Feb 16, 2005, at 1:51 PM, Alex Perez wrote:
great idea...where should this go? NSImage code or something?
I'm not really sure where basetsd.h is included (hopefully not in
jpeglib.h!), but as early as possible, to be safe:
Index: NSBitmapImageRep+JPEG.m
===================================================================
RCS file:
/cvsroot/gnustep/gnustep/core/gui/Source/NSBitmapImageRep+JPEG.m,v
retrieving revision 1.1
diff -u -r1.1 NSBitmapImageRep+JPEG.m
--- NSBitmapImageRep+JPEG.m 7 Jan 2004 23:53:15 -0000 1.1
+++ NSBitmapImageRep+JPEG.m 16 Feb 2005 21:48:28 -0000
@@ -30,14 +30,20 @@
#if HAVE_LIBJPEG
+#ifdef __WIN32__
+#define INT32 JPEGINT32
+#endif
+#include <jerror.h>
+#include <jpeglib.h>
+#ifdef __WIN32__
+#undef INT32
+#endif
+
#include <Foundation/NSString.h>
#include <Foundation/NSData.h>
#include <Foundation/NSException.h>
#include "AppKit/NSGraphics.h"
-#include <jerror.h>
-#include <jpeglib.h>
-
#include <setjmp.h>