From 016e9b2ee68c0c53a3e977a45cf86418baa295a1 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 27 Nov 1999 13:20:26 +0000 Subject: In ANSI C++, wchar_t is a builtin. gcc 2.95.1 handles that correctly. Redefining it as a typedef is an error, as it prevents overloading on e.g., int/wchar_t separately. --- include/stdlib.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/stdlib.h') diff --git a/include/stdlib.h b/include/stdlib.h index 286ebd48b48..afd027aa611 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.10 1999/06/11 22:47:48 espie Exp $ */ +/* $OpenBSD: stdlib.h,v 1.11 1999/11/27 13:20:25 espie Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -50,7 +50,10 @@ typedef _BSD_SIZE_T_ size_t; #endif #ifdef _BSD_WCHAR_T_ +/* in C++, wchar_t is a built-in type */ +#ifndef __cplusplus typedef _BSD_WCHAR_T_ wchar_t; +#endif #undef _BSD_WCHAR_T_ #endif -- cgit v1.2.3