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/string.h | |
| parent | c4abf4497ba24d716250af4186757b5c5952f54e (diff) | |
Restore C++ support
Diffstat (limited to 'include/string.h')
| -rw-r--r-- | include/string.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index 02e931e..f11e388 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -5,7 +5,10 @@ | |||
| 5 | 5 | ||
| 6 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 | 6 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 |
| 7 | 7 | ||
| 8 | #ifndef __cplusplus | 8 | #ifdef __cplusplus |
| 9 | extern "C" { | ||
| 10 | #endif | ||
| 11 | |||
| 9 | #undef memcpy | 12 | #undef memcpy |
| 10 | #undef memmove | 13 | #undef memmove |
| 11 | #undef memset | 14 | #undef memset |
| @@ -181,6 +184,8 @@ size_t strlcpy(char *dest, const char *src, size_t n) | |||
| 181 | } | 184 | } |
| 182 | #endif | 185 | #endif |
| 183 | 186 | ||
| 187 | #ifdef __cplusplus | ||
| 188 | } | ||
| 184 | #endif | 189 | #endif |
| 185 | 190 | ||
| 186 | #endif | 191 | #endif |
