This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dia-0.91 fails compile on gcc 3.3
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Hans Breuer <Hans at Breuer dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 27 Jul 2003 16:14:38 -0400
- Subject: Re: dia-0.91 fails compile on gcc 3.3
- References: <3.0.5.32.20030727220721.0084f920@getmail.breuer.org>
On Sun, Jul 27, 2003 at 10:07:21PM +0200, Hans Breuer wrote:
> The magic macro is :
> #define I_OR_F(v) \
> (self->is_int ? \
> PyInt_FromLong(self->r.ri.##v) : PyFloat_FromDouble(self->r.rf.##v))
>
> invoked as :
> I_OR_F(top);
>
> Though it would be easy to workaround in Dia, shouldn't this be
> fixed with gcc ?
Try just removing the ##. It's not necessary, and it's not correct.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer