X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libcpp%2Fsystem.h;h=e08bdf12faeab89e38e78ae5d7b85008a894cb69;hp=98ac118e3518ac90a54237b42aabc0ee954cecb7;hb=0fffdebc73c679bf161c7205b8b2087347432150;hpb=2224c90bc01cc197361e465122ecfb5676b8899e diff --git a/libcpp/system.h b/libcpp/system.h index 98ac118e351..e08bdf12fae 100644 --- a/libcpp/system.h +++ b/libcpp/system.h @@ -17,8 +17,8 @@ for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. */ +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ #ifndef LIBCPP_SYSTEM_H @@ -342,10 +342,14 @@ extern void abort (void); #include "libiberty.h" #include "safe-ctype.h" -/* 1 if we have C99 designated initializers. */ +/* 1 if we have C99 designated initializers. + + ??? C99 designated initializers are not supported by most C++ + compilers, including G++. -- gdr, 2005-05-18 */ #if !defined(HAVE_DESIGNATED_INITIALIZERS) #define HAVE_DESIGNATED_INITIALIZERS \ - ((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L)) + ((!defined(__cplusplus) && (GCC_VERSION >= 2007)) \ + || (__STDC_VERSION__ >= 199901L)) #endif /* Be conservative and only use enum bitfields with GCC. @@ -379,7 +383,9 @@ extern void abort (void); #undef TRUE #undef FALSE +#ifndef __cplusplus #define bool unsigned char +#endif #define true 1 #define false 0