From e7e825f8814e37058bf7b4de35e4cb974b3d07b9 Mon Sep 17 00:00:00 2001 From: scw Date: Tue, 1 Apr 2003 10:27:17 +0000 Subject: [PATCH] Remove some obsolete checks for __GNUC__ < 3. --- sys/arch/sh5/include/ansi.h | 15 +-------------- sys/arch/sh5/include/int_limits.h | 8 +------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/sys/arch/sh5/include/ansi.h b/sys/arch/sh5/include/ansi.h index 2b073d83ac2f..c3c71cb155f3 100644 --- a/sys/arch/sh5/include/ansi.h +++ b/sys/arch/sh5/include/ansi.h @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.4 2003/03/02 22:18:20 tshiozak Exp $ */ +/* $NetBSD: ansi.h,v 1.5 2003/04/01 10:27:17 scw Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -77,22 +77,9 @@ * and rune_t are typedef'd, _WCHAR_T_ will be undef'd, but _RUNE_T remains * defined for ctype.h. */ -/* - * 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 #define _BSD_WCTRANS_T_ void * /* wctrans_t */ #define _BSD_WCTYPE_T_ void * /* wctype_t */ diff --git a/sys/arch/sh5/include/int_limits.h b/sys/arch/sh5/include/int_limits.h index df30e608a98a..b58e9775c7e1 100644 --- a/sys/arch/sh5/include/int_limits.h +++ b/sys/arch/sh5/include/int_limits.h @@ -1,4 +1,4 @@ -/* $NetBSD: int_limits.h,v 1.2 2002/07/10 12:23:08 scw Exp $ */ +/* $NetBSD: int_limits.h,v 1.3 2003/04/01 10:27:17 scw Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -147,14 +147,8 @@ #ifndef WCHAR_MIN /* also possibly defined in */ /* limits of wchar_t */ -#if __GNUC__ < 3 -/* Yet another non-native toolchain hack */ -#define WCHAR_MIN (-0x7fff-1) /* wchar_t */ -#define WCHAR_MAX 0x7fff /* wchar_t */ -#else #define WCHAR_MIN (-0x7fffffff-1) /* wchar_t */ #define WCHAR_MAX 0x7fffffff /* wchar_t */ -#endif /* limits of wint_t */ #define WINT_MIN (-0x7fffffff-1) /* wint_t */