[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for gnustep-gui-0.10.3/Source/NSBitmapRep+JPEG.m on mingw / win32
From: |
Issac Trotts |
Subject: |
Patch for gnustep-gui-0.10.3/Source/NSBitmapRep+JPEG.m on mingw / win32 |
Date: |
Wed, 15 Mar 2006 21:20:49 -0800 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch for gnustep-gui-0.10.3/Source/NSBitmapRep+JPEG.m on mingw / win32,
Issac Trotts <=