diff options
| author | sin | 2015-03-13 23:09:15 +0000 |
|---|---|---|
| committer | sin | 2015-03-13 23:09:15 +0000 |
| commit | d12254166a55d17932ea4143fbd50fb52539ff8b (patch) | |
| tree | 5305a94b78698f8d94b20370e59647276c7b47d0 /include/wchar.h | |
| parent | c4abf4497ba24d716250af4186757b5c5952f54e (diff) | |
Restore C++ support
Diffstat (limited to 'include/wchar.h')
| -rw-r--r-- | include/wchar.h | 7 |
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 |
| 10 | extern "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 |
