summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index 9f7d462..2f513ca 100644
--- a/include/string.h
+++ b/include/string.h
@@ -5,6 +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#ifdef __cplusplus
9extern "C" {
10#endif
11
8static inline __attribute__ ((always_inline)) 12static inline __attribute__ ((always_inline))
9void * 13void *
10__fortify_memcpy(void *dest, const void *src, size_t n) 14__fortify_memcpy(void *dest, const void *src, size_t n)
@@ -186,6 +190,10 @@ __fortify_strlcpy(char *dest, const char *src, size_t n)
186#define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n) 190#define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n)
187#endif 191#endif
188 192
193#ifdef __cplusplus
194}
195#endif
196
189#endif 197#endif
190 198
191#endif 199#endif