summaryrefslogtreecommitdiff
path: root/include/wchar.h
diff options
context:
space:
mode:
authorsin2015-03-13 23:09:15 +0000
committersin2015-03-13 23:09:15 +0000
commitd12254166a55d17932ea4143fbd50fb52539ff8b (patch)
tree5305a94b78698f8d94b20370e59647276c7b47d0 /include/wchar.h
parentc4abf4497ba24d716250af4186757b5c5952f54e (diff)
Restore C++ support
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h7
1 files changed, 6 insertions, 1 deletions
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 @@
6 6
7#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 7#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
8 8
9#ifndef __cplusplus 9#ifdef __cplusplus
10extern "C" {
11#endif
12
10#undef fgetws 13#undef fgetws
11#undef mbsnrtowcs 14#undef mbsnrtowcs
12#undef mbsrtowcs 15#undef mbsrtowcs
@@ -246,6 +249,8 @@ wchar_t *wmemset(wchar_t *s, wchar_t c, size_t n)
246 return __wmemset_orig(s, c, n); 249 return __wmemset_orig(s, c, n);
247} 250}
248 251
252#ifdef __cplusplus
253}
249#endif 254#endif
250 255
251#endif 256#endif