From 30589be58b8a1e7e6832045aed98a230a58c1dc2 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 4 Mar 2007 02:31:43 +0000 Subject: [PATCH] Added C++ guard. I don't know, why we define the protos both there and in . Any reason for not removing them in ? Or maybe even nicer reverse the inclusion direction, i.e. remove the duplicate protos in and include instead. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20317 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/wchar.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/headers/posix/wchar.h b/headers/posix/wchar.h index e3c9188944..404dc19f4e 100644 --- a/headers/posix/wchar.h +++ b/headers/posix/wchar.h @@ -21,6 +21,10 @@ typedef struct { #include +#ifdef __cplusplus +extern "C" { +#endif + extern wint_t fgetwc(FILE *); extern wchar_t *fgetws(wchar_t *, int, FILE *); extern wint_t fputwc(wchar_t, FILE *); @@ -82,6 +86,10 @@ extern size_t wcsxfrm(wchar_t *, const wchar_t *, size_t); extern wctype_t wctype(const char *); extern int wcwidth(wchar_t); +#ifdef __cplusplus +} +#endif + #define WEOF ((wint_t)(-1)) #endif /* _WCHAR_H */