diff options
| author | sin | 2015-03-11 09:26:11 +0000 |
|---|---|---|
| committer | sin | 2015-03-11 09:26:11 +0000 |
| commit | 8604f138c55ab4904a2fd9b7edce2b688c70e6c0 (patch) | |
| tree | b3cc05536f3b7be32faa9dd75d0babbf5fcdbdc5 /include/wchar.h | |
| parent | 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212 (diff) | |
Add ifdef guards for C++ code
Diffstat (limited to 'include/wchar.h')
| -rw-r--r-- | include/wchar.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h index ca9840a..8a72e35 100644 --- a/include/wchar.h +++ b/include/wchar.h | |||
| @@ -6,6 +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 | #ifdef __cplusplus | ||
| 10 | extern "C" { | ||
| 11 | #endif | ||
| 12 | |||
| 9 | static inline __attribute__ ((always_inline)) | 13 | static inline __attribute__ ((always_inline)) |
| 10 | wchar_t * | 14 | wchar_t * |
| 11 | __fortify_fgetws(wchar_t *s, int n, FILE *fp) | 15 | __fortify_fgetws(wchar_t *s, int n, FILE *fp) |
| @@ -249,6 +253,10 @@ __fortify_wmemset(wchar_t *s, wchar_t c, size_t n) | |||
| 249 | #undef wmemset | 253 | #undef wmemset |
| 250 | #define wmemset(s, c, n) __fortify_wmemset(s, c, n) | 254 | #define wmemset(s, c, n) __fortify_wmemset(s, c, n) |
| 251 | 255 | ||
| 256 | #ifdef __cplusplus | ||
| 257 | } | ||
| 258 | #endif | ||
| 259 | |||
| 252 | #endif | 260 | #endif |
| 253 | 261 | ||
| 254 | #endif | 262 | #endif |
