Hi,

trying to compile gnustep-base with gcc-2.95 fails, in case icu4c is available. 
Its the same problem I reported some days/weeks ago what I had with 
gnustep-back. icu4c uses id as parameter name, which makes gcc-2.9 unhappy.
The fix is the same I had for -back. redefining id, before the icu4c header 
gets included.

cheers,
Sebastian
$OpenBSD$

fix for build with gcc-2.95 in case icu4c is available

--- Source/NSCalendar.m.orig	Wed Jun  8 15:40:08 2011
+++ Source/NSCalendar.m	Wed Jun  8 15:40:38 2011
@@ -35,7 +35,9 @@
 #import "GNUstepBase/GSLock.h"
 
 #if defined(HAVE_UNICODE_UCAL_H)
+#define id ucal_id
 #include <unicode/ucal.h>
+#undef id
 #endif
 
 
$OpenBSD$

fix for build with gcc-2.95 in case icu4c is available

--- Source/NSDateFormatter.m.orig	Wed Jun  8 16:19:57 2011
+++ Source/NSDateFormatter.m	Wed Jun  8 16:20:52 2011
@@ -39,7 +39,9 @@
 #import "Foundation/NSCoder.h"
 
 #if defined(HAVE_UNICODE_UDAT_H)
+#define id id_ucal
 #include <unicode/udat.h>
+#undef id
 #endif
 #if defined(HAVE_UNICODE_UDATPG_H)
 #include <unicode/udatpg.h>
$OpenBSD$

fix for gcc-2.95 and icu4c available

--- Source/NSTimeZone.m.orig	Wed Jun  8 18:07:32 2011
+++ Source/NSTimeZone.m	Wed Jun  8 18:07:57 2011
@@ -112,7 +112,9 @@
 #endif
 
 #if defined(HAVE_UNICODE_UCAL_H)
+#define id id_ucal
 #include <unicode/ucal.h>
+#undef id
 #endif
 
 NSString * const NSSystemTimeZoneDidChangeNotification
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to