This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dia-0.91 fails compile on gcc 3.3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]