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 */