diff options
| author | sin | 2015-03-11 11:18:31 +0000 |
|---|---|---|
| committer | sin | 2015-03-11 11:18:31 +0000 |
| commit | 14af218559243c1e16cf871e1823f1a5d8cece9f (patch) | |
| tree | 86c5e51f27b6ba5b65d33429135ea5893445102e /include/sys/select.h | |
| parent | 8604f138c55ab4904a2fd9b7edce2b688c70e6c0 (diff) | |
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.
Diffstat (limited to 'include/sys/select.h')
| -rw-r--r-- | include/sys/select.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/sys/select.h b/include/sys/select.h index 50bdb6a..9e56450 100644 --- a/include/sys/select.h +++ b/include/sys/select.h | |||
| @@ -5,9 +5,7 @@ | |||
| 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 | 8 | #ifndef __cplusplus |
| 9 | extern "C" { | ||
| 10 | #endif | ||
| 11 | 9 | ||
| 12 | static inline __attribute__ ((always_inline)) | 10 | static inline __attribute__ ((always_inline)) |
| 13 | int | 11 | int |
| @@ -36,8 +34,6 @@ __fortify_FD_SET(int fd, fd_set *set) | |||
| 36 | #undef FD_SET | 34 | #undef FD_SET |
| 37 | #define FD_SET(fd, set) __fortify_FD_SET(fd, set) | 35 | #define FD_SET(fd, set) __fortify_FD_SET(fd, set) |
| 38 | 36 | ||
| 39 | #ifdef __cplusplus | ||
| 40 | } | ||
| 41 | #endif | 37 | #endif |
| 42 | 38 | ||
| 43 | #endif | 39 | #endif |
