bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for gnustep-gui-0.10.3/Source/NSBitmapRep+JPEG.m on mingw / wi


From: Adam Fedor
Subject: Re: Patch for gnustep-gui-0.10.3/Source/NSBitmapRep+JPEG.m on mingw / win32
Date: Wed, 19 Apr 2006 15:38:19 -0600

I added something similar to this. Thanks.

On 2006-03-15 22:20:49 -0700 Issac Trotts <issac.trotts@gmail.com> wrote:

I was getting this error

Compiling file NSBitmapImageRep+JPEG.m ...
In file included from
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/jpeglib.h:26,
                from NSBitmapImageRep+JPEG.m:39:
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/jmorecfg.h:161:
error: conflicting types for 'INT32'
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/basetsd.h:52:
error: previous declaration of 'INT32' was here
make[2]: *** [shared_obj/NSBitmapImageRep+JPEG.o] Error 1
make[1]: *** [libgnustep-gui.all.library.variables] Error 2
make[1]: Leaving directory `/c/downloads/gnustep/gnustep-gui-0.10.3/Source'
make: *** [internal-all] Error 2


until I made this change:

$ diff -Naur NSBitmapImageRep+JPEG.m{.bak,}
--- NSBitmapImageRep+JPEG.m.bak Tue Mar 14 21:59:53 2006
+++ NSBitmapImageRep+JPEG.m     Tue Mar 14 21:59:57 2006
@@ -36,6 +36,10 @@
#include "AppKit/NSGraphics.h"

#include <jerror.h>
+
+/* This define is a workaround so that INT32 is not redefined in jmorecfg.h
+   from its previous definition in basetsd.h.  -ijt */
+#define XMD_H
#include <jpeglib.h>

#include <setjmp.h>


- Issac


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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]