summaryrefslogtreecommitdiff
path: root/include/wchar.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-05-18 13:48:50 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-05-18 13:48:50 +0000
commit460149c8982d8556fa12c994ff8f4523a18832f0 (patch)
tree09b952dc4c92503caf21b7f8d3e9b4e1f48eebbc /include/wchar.h
parent71f1bbdc622934691c2d28a925e43cb7accf5d0d (diff)
wchar_t is a native C++ type, gcc picks its definition from elsewhere,
so do not redefine it. Found out by the quite picky fixinc in recent gcc. okay millert@, kettenis@
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/wchar.h b/include/wchar.h
index c7bd964d01e..c53679f85ba 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wchar.h,v 1.2 2005/05/11 18:44:12 espie Exp $ */
+/* $OpenBSD: wchar.h,v 1.3 2005/05/18 13:48:49 espie Exp $ */
/* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */
/*-
@@ -80,7 +80,9 @@
#include <stdio.h> /* for FILE* */
#ifdef _BSD_WCHAR_T_
+# ifndef __cplusplus
typedef _BSD_WCHAR_T_ wchar_t;
+# endif
#undef _BSD_WCHAR_T_
#endif