From d12254166a55d17932ea4143fbd50fb52539ff8b Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 13 Mar 2015 23:09:15 +0000 Subject: Restore C++ support --- include/wchar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index dac8435..f613429 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -6,7 +6,10 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#ifndef __cplusplus +#ifdef __cplusplus +extern "C" { +#endif + #undef fgetws #undef mbsnrtowcs #undef mbsrtowcs @@ -246,6 +249,8 @@ wchar_t *wmemset(wchar_t *s, wchar_t c, size_t n) return __wmemset_orig(s, c, n); } +#ifdef __cplusplus +} #endif #endif -- cgit v1.3