This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: gcc -dM -E -xc /dev/null & g++ -dM -E -xc /dev/null


--- Christopher Faylor <cgf-rcm@cygwin.com> wrote:
> On Mon, Oct 13, 2003 at 07:22:28AM +0200, Alex Vinokur wrote:
> >gcc -dM -E -xc /dev/null
> >  and
> >g++ -dM -E -xc /dev/null
> >  produce the same output.
> >
> >Is this a feature or a bug?
> 
> It is not a bug.  Try it on linux.
> 
> >How can one know that g++ (not gcc) is invoked?
> 
> Isn't the __cplusplus define a feature of c++?  I'm too lazy to check if this
> is a g++ extension but I'd be surprised if it was.
> 

Yes, it's defined in section 16.8 (Predefined macro names) of the ANSI/ISO
standard.

--Rick

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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