discuss-gnustep
[Top][All Lists]
Advanced

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

Re: failure building gnustep cairo backend, and gnustep-examples on Ope


From: Sebastian Reitenbach
Subject: Re: failure building gnustep cairo backend, and gnustep-examples on OpenBSD sparc
Date: Wed, 18 May 2011 18:47:53 +0200
User-agent: SOGoMail 1.3.7

 
Hi,


On Tuesday, May 17, 2011 11:07 CEST, David Chisnall <theraven@sucs.org> wrote: 
 
> On 17 May 2011, at 09:20, Fred Kiefer wrote:
> 
> > - Either the compiler has an issue with seeing "id" used as a variable name.
> 
> 
> This sounds quite plausible.  We had a similar problem with some GNUstep 
> headers that used template as an argument name and could then not be included 
> in ObjC++ programs and with some glibc headers that use __block as an 
> argument name.
> 
> Try replacing this
> 
> #include <gl.h>
> 
> With this:
> 
> #define id gl_id
> #include <gl.h>
> #undef id

this also worked to get cairo backend to compile with gcc-2.95, but a little 
bit more was necessary. See attached patch.

cheers,
Sebastian

> 
> David
> 
> 
> -- Sent from my Cray X1
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
 
 
 
 

Attachment: patch-gnustep-back-cairo-gcc-2.95.diff
Description: Binary data


reply via email to

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