From 14af218559243c1e16cf871e1823f1a5d8cece9f Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 11 Mar 2015 11:18:31 +0000 Subject: Ignore C++ for now It is not legal to override standard functions using macros in C++. We may have to revisit this in the future. --- include/wchar.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index 8a72e35..9180603 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -6,9 +6,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#ifdef __cplusplus -extern "C" { -#endif +#ifndef __cplusplus static inline __attribute__ ((always_inline)) wchar_t * @@ -253,8 +251,6 @@ __fortify_wmemset(wchar_t *s, wchar_t c, size_t n) #undef wmemset #define wmemset(s, c, n) __fortify_wmemset(s, c, n) -#ifdef __cplusplus -} #endif #endif -- cgit v1.3