Don't define wchar_t if __cplusplus is defined.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 19 Aug 1995 20:40:07 +0000 (16:40 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 19 Aug 1995 20:40:07 +0000 (16:40 -0400)
From-SVN: r10246

gcc/ginclude/stddef.h

index 23d519c1a03028fddb0e24c914123543c24f2e8c..af3071fbfe7f6db494f0b0cd9c89b72280866468 100644 (file)
@@ -237,6 +237,7 @@ typedef _BSD_RUNE_T_ rune_t;
 #ifndef __WCHAR_TYPE__
 #define __WCHAR_TYPE__ int
 #endif
+#ifndef __cplusplus
 typedef __WCHAR_TYPE__ wchar_t;
 #endif
 #endif
@@ -250,6 +251,7 @@ typedef __WCHAR_TYPE__ wchar_t;
 #endif
 #endif
 #endif
+#endif
 #undef __need_wchar_t
 #endif /* _STDDEF_H or __need_wchar_t.  */