This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to distinguish MYDEF and MYDEF() with #ifdef
- From: John Love-Jensen <eljay at adobe dot com>
- To: Frank Winklmeier <frank dot winklmeier at cern dot ch>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 24 Jul 2007 08:39:23 -0500
- Subject: Re: How to distinguish MYDEF and MYDEF() with #ifdef
Hi Frank,
I do not believe there is a discriminator predicate between MYDEF and
MYDEF() preprocessor directives for the #if.
I suggest you rely on another preprocessor symbol from the relevant header
files to use as a discriminator between MYDEF and MYDEF().
Alternatively, change the MYDEF() to MYDEF_FN(). Or if you are a radical
(like myself) use $MYDEF and MYDEF$() and the -fdollars-in-identifiers GCC
flag.
HTH,
--Eljay