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/stdlib.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/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 6 |
1 files changed, 1 insertions, 5 deletions
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 |
