diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/poll.h | 6 | ||||
| -rw-r--r-- | include/stdio.h | 6 | ||||
| -rw-r--r-- | include/stdlib.h | 6 | ||||
| -rw-r--r-- | include/string.h | 6 | ||||
| -rw-r--r-- | include/strings.h | 6 | ||||
| -rw-r--r-- | include/sys/select.h | 6 | ||||
| -rw-r--r-- | include/sys/socket.h | 6 | ||||
| -rw-r--r-- | include/unistd.h | 6 | ||||
| -rw-r--r-- | include/wchar.h | 6 |
9 files changed, 9 insertions, 45 deletions
diff --git a/include/poll.h b/include/poll.h index ac79695..5e27850 100644 --- a/include/poll.h +++ b/include/poll.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 |
| @@ -42,8 +40,6 @@ __fortify_ppoll(struct pollfd *fds, nfds_t nfds, | |||
| 42 | #define ppoll(fds, nfds, timeout, mask) __fortify_ppoll(fds, nfds, timeout, mask) | 40 | #define ppoll(fds, nfds, timeout, mask) __fortify_ppoll(fds, nfds, timeout, mask) |
| 43 | #endif | 41 | #endif |
| 44 | 42 | ||
| 45 | #ifdef __cplusplus | ||
| 46 | } | ||
| 47 | #endif | 43 | #endif |
| 48 | 44 | ||
| 49 | #endif | 45 | #endif |
diff --git a/include/stdio.h b/include/stdio.h index ab9b00f..0c32728 100644 --- a/include/stdio.h +++ b/include/stdio.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 | char * | 11 | char * |
| @@ -108,8 +106,6 @@ __fortify_vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) | |||
| 108 | r; \ | 106 | r; \ |
| 109 | }) | 107 | }) |
| 110 | 108 | ||
| 111 | #ifdef __cplusplus | ||
| 112 | } | ||
| 113 | #endif | 109 | #endif |
| 114 | 110 | ||
| 115 | #endif | 111 | #endif |
diff --git a/include/stdlib.h b/include/stdlib.h index 312555c..4422f5e 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -9,9 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 | 10 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 |
| 11 | 11 | ||
| 12 | #ifdef __cplusplus | 12 | #ifndef __cplusplus |
| 13 | extern "C" { | ||
| 14 | #endif | ||
| 15 | 13 | ||
| 16 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | 14 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 17 | static inline __attribute__ ((always_inline)) | 15 | static inline __attribute__ ((always_inline)) |
| @@ -36,8 +34,6 @@ __fortify_realpath(const char *path, char *resolved) | |||
| 36 | #define realpath(path, resolved) __fortify_realpath(path, resolved) | 34 | #define realpath(path, resolved) __fortify_realpath(path, resolved) |
| 37 | #endif | 35 | #endif |
| 38 | 36 | ||
| 39 | #ifdef __cplusplus | ||
| 40 | } | ||
| 41 | #endif | 37 | #endif |
| 42 | 38 | ||
| 43 | #endif | 39 | #endif |
diff --git a/include/string.h b/include/string.h index 2f513ca..b0979cc 100644 --- a/include/string.h +++ b/include/string.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 | void * | 11 | void * |
| @@ -190,8 +188,6 @@ __fortify_strlcpy(char *dest, const char *src, size_t n) | |||
| 190 | #define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n) | 188 | #define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n) |
| 191 | #endif | 189 | #endif |
| 192 | 190 | ||
| 193 | #ifdef __cplusplus | ||
| 194 | } | ||
| 195 | #endif | 191 | #endif |
| 196 | 192 | ||
| 197 | #endif | 193 | #endif |
diff --git a/include/strings.h b/include/strings.h index 0862b58..1609171 100644 --- a/include/strings.h +++ b/include/strings.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 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ | 10 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ |
| 13 | || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ | 11 | || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ |
| @@ -40,8 +38,6 @@ __fortify_bzero(void *src, size_t n) | |||
| 40 | #define bzero(src, n) __fortify_bzero(src, n) | 38 | #define bzero(src, n) __fortify_bzero(src, n) |
| 41 | #endif | 39 | #endif |
| 42 | 40 | ||
| 43 | #ifdef __cplusplus | ||
| 44 | } | ||
| 45 | #endif | 41 | #endif |
| 46 | 42 | ||
| 47 | #endif | 43 | #endif |
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 |
diff --git a/include/sys/socket.h b/include/sys/socket.h index fc7381a..02ff2ab 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.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 | ssize_t | 11 | ssize_t |
| @@ -64,8 +62,6 @@ __fortify_sendto(int sockfd, const void *buf, size_t n, int flags, | |||
| 64 | #undef sendto | 62 | #undef sendto |
| 65 | #define sendto(sockfd, buf, n, flags, sa, salen) __fortify_sendto(sockfd, buf, n, flags, sa, salen) | 63 | #define sendto(sockfd, buf, n, flags, sa, salen) __fortify_sendto(sockfd, buf, n, flags, sa, salen) |
| 66 | 64 | ||
| 67 | #ifdef __cplusplus | ||
| 68 | } | ||
| 69 | #endif | 65 | #endif |
| 70 | 66 | ||
| 71 | #endif | 67 | #endif |
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 @@ | |||
| 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 | size_t | 11 | size_t |
| @@ -172,8 +170,6 @@ __fortify_write(int fd, const void *buf, size_t n) | |||
| 172 | #undef write | 170 | #undef write |
| 173 | #define write(fd, buf, n) __fortify_write(fd, buf, n) | 171 | #define write(fd, buf, n) __fortify_write(fd, buf, n) |
| 174 | 172 | ||
| 175 | #ifdef __cplusplus | ||
| 176 | } | ||
| 177 | #endif | 173 | #endif |
| 178 | 174 | ||
| 179 | #endif | 175 | #endif |
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 @@ | |||
| 6 | 6 | ||
| 7 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 | 7 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 |
| 8 | 8 | ||
| 9 | #ifdef __cplusplus | 9 | #ifndef __cplusplus |
| 10 | extern "C" { | ||
| 11 | #endif | ||
| 12 | 10 | ||
| 13 | static inline __attribute__ ((always_inline)) | 11 | static inline __attribute__ ((always_inline)) |
| 14 | wchar_t * | 12 | wchar_t * |
| @@ -253,8 +251,6 @@ __fortify_wmemset(wchar_t *s, wchar_t c, size_t n) | |||
| 253 | #undef wmemset | 251 | #undef wmemset |
| 254 | #define wmemset(s, c, n) __fortify_wmemset(s, c, n) | 252 | #define wmemset(s, c, n) __fortify_wmemset(s, c, n) |
| 255 | 253 | ||
| 256 | #ifdef __cplusplus | ||
| 257 | } | ||
| 258 | #endif | 254 | #endif |
| 259 | 255 | ||
| 260 | #endif | 256 | #endif |
