From da4a7ba49b282639f0bff21c41f7b7122c9883ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 23 Jun 2004 15:17:06 +0000 Subject: [PATCH] wchar_t is already defined in C++ with GCC 3 - this fixes the build for that compiler. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8136 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/wchar_t.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headers/posix/wchar_t.h b/headers/posix/wchar_t.h index 0925cb33cc..37fee5ad18 100644 --- a/headers/posix/wchar_t.h +++ b/headers/posix/wchar_t.h @@ -7,7 +7,9 @@ #ifndef _WCHAR_T_H #define _WCHAR_T_H +#if !defined(__cplusplus) || __GNUC__ < 3 typedef unsigned short wchar_t; +#endif #define _WINT_T typedef unsigned int wint_t;