On Sun, 31 Dec 2000, Francois Gouget wrote:
> I tried compiling with a recent gcc (CVS-20001228) and it's more than
> just warnings.
2.96-69 just warns about it (and seems to do the right thing without the
##. (This means it compiles; haven't tried running anything on the
resulting binary yet)).
I guess the way to go is
#ifdef GCC_IS_BROKEN
ret CALLBACK (*ICOM_FN(##xfn))(ICOM_INTERFACE* me);
...
#else
ret CALLBACK (*ICOM_FN(xfn))(ICOM_INTERFACE* me);
...
#endif
> This version of gcc complains about the '##' in '##xfn'
> then proceeds to expand xfn, and then the ICOM_FN macro.
> So it does not work. So either this version of gcc is wrong in its
> macro expansion
AFAIK this is the intended behavior according to ISO C99, but I don't have
the standards at hand.
> I have had a few other weird errors with that version of gcc so maybe
> I should try to get in touch with the gcc experts (mailing list) and ask
> what's up.
Please Cc [EMAIL PROTECTED], he's maintaining 2.96.
LLaP
bero