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/unistd.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index 2403db1..05b6688 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -5,9 +5,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#ifdef __cplusplus -extern "C" { -#endif +#ifndef __cplusplus static inline __attribute__ ((always_inline)) size_t @@ -172,8 +170,6 @@ __fortify_write(int fd, const void *buf, size_t n) #undef write #define write(fd, buf, n) __fortify_write(fd, buf, n) -#ifdef __cplusplus -} #endif #endif -- cgit v1.3