This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Pedefined macro for C dialect
- From: Ian Lance Taylor <iant at google dot com>
- To: Edward Diener <eldlistmailingz at tropicsoft dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 02 May 2011 22:24:32 -0700
- Subject: Re: Pedefined macro for C dialect
- References: <ipnhq1$ra5$1@dough.gmane.org>
Edward Diener <eldlistmailingz@tropicsoft.com> writes:
> Is there any predefined macro for testing the language standard
> setting ( std= ) when compiling a C++ translation unit ?
Not in general, no. Using -std=c++0x will defined
__GXX_EXPERIMENTAL_CXX0X__.
Ian