Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh5/include More SH5 toolchain hacks: Don't define ...



details:   https://anonhg.NetBSD.org/src/rev/de3e29d56e03
branches:  trunk
changeset: 533995:de3e29d56e03
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Jul 12 11:19:08 2002 +0000

description:
More SH5 toolchain hacks: Don't define _BSD_WCHAR_T if compiling C++.

diffstat:

 sys/arch/sh5/include/ansi.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 3ae6b9168715 -r de3e29d56e03 sys/arch/sh5/include/ansi.h
--- a/sys/arch/sh5/include/ansi.h       Fri Jul 12 05:30:24 2002 +0000
+++ b/sys/arch/sh5/include/ansi.h       Fri Jul 12 11:19:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.2 2002/07/10 12:23:08 scw Exp $     */
+/*     $NetBSD: ansi.h,v 1.3 2002/07/12 11:19:08 scw Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -81,11 +81,15 @@
  * XXX: Yet another hack for the non-native sh5 toolchain
  */
 #if __GNUC__ < 3
+#ifndef __cplusplus
 #define        _BSD_WCHAR_T_           unsigned short int              /* wchar_t */
+#endif
 #define        _BSD_WINT_T_            int                             /* wint_t */
 #define        _BSD_RUNE_T_            unsigned short int              /* rune_t */
 #else
+#ifndef __cplusplus
 #define        _BSD_WCHAR_T_           int             /* wchar_t */
+#endif
 #define        _BSD_WINT_T_            int             /* wint_t */
 #define        _BSD_RUNE_T_            int             /* rune_t */
 #endif



Home | Main Index | Thread Index | Old Index