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>



_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to