diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-11-27 13:20:26 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-11-27 13:20:26 +0000 |
commit | 016e9b2ee68c0c53a3e977a45cf86418baa295a1 (patch) | |
tree | f68d29e8055b11882443a6b42bac8d1d456208ab /include/stdlib.h | |
parent | 0fab7a58bc4b014b8787f7147cb5635c64a7f0e1 (diff) |
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.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |