Browse Source

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@
OPENBSD_3_8
espie 19 years ago
parent
commit
8d57f68af7
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/include/wchar.h

+ 3
- 1
src/include/wchar.h View File

@ -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 $ */ /* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */
/*- /*-
@ -80,7 +80,9 @@
#include <stdio.h> /* for FILE* */ #include <stdio.h> /* for FILE* */
#ifdef _BSD_WCHAR_T_ #ifdef _BSD_WCHAR_T_
# ifndef __cplusplus
typedef _BSD_WCHAR_T_ wchar_t; typedef _BSD_WCHAR_T_ wchar_t;
# endif
#undef _BSD_WCHAR_T_ #undef _BSD_WCHAR_T_
#endif #endif


Loading…
Cancel
Save