haiku/headers/posix/wchar_t.h
Axel Dörfler da4a7ba49b 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
2004-06-23 15:17:06 +00:00

24 lines
378 B
C

/*
* Copyright (C) 2002 Marcus Overhagen
* All rights reserved.
*
* Distributed under the terms of the MIT license
*/
#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;
typedef struct {
int __count;
wint_t __value;
} mbstate_t;
#endif /* _WCHAR_T_H */