This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L



------- Comment #62 from gdr at cs dot tamu dot edu  2007-03-28 17:54 -------
Subject: Re:  __cplusplus defined to 1, should be 199711L

"bkoz at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| ------- Comment #60 from bkoz at gcc dot gnu dot org  2007-03-28 17:48
-------
| 
| Mine.
| 
| Current libcpp patch only is:
| 
| Index: init.c
| ===================================================================
| --- init.c      (revision 123196)
| +++ init.c      (working copy)
| @@ -376,7 +376,7 @@
|      }
| 
|    if (CPP_OPTION (pfile, cplusplus))
| -    _cpp_define_builtin (pfile, "__cplusplus 1");
| +    _cpp_define_builtin (pfile, "__cplusplus 199711L");
|    else if (CPP_OPTION (pfile, lang) == CLK_ASM)
|      _cpp_define_builtin (pfile, "__ASSEMBLER__ 1");
|    else if (CPP_OPTION (pfile, lang) == CLK_STDC94)

Yes, that is correct.

I thought there was an issue with solaris boxes.  Was that fixed?

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773


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