Remove some obsolete checks for __GNUC__ < 3.

This commit is contained in:
scw 2003-04-01 10:27:17 +00:00
parent 99e0368bfe
commit e7e825f881
2 changed files with 2 additions and 21 deletions

View File

@ -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 */

View File

@ -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 <wchar.h> */
/* 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 */