summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorsin2015-03-13 23:09:15 +0000
committersin2015-03-13 23:09:15 +0000
commitd12254166a55d17932ea4143fbd50fb52539ff8b (patch)
tree5305a94b78698f8d94b20370e59647276c7b47d0 /include/string.h
parentc4abf4497ba24d716250af4186757b5c5952f54e (diff)
Restore C++ support
Diffstat (limited to '')
-rw-r--r--include/string.h7
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
9extern "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