diff options
| author | sin | 2015-03-11 09:26:11 +0000 |
|---|---|---|
| committer | sin | 2015-03-11 09:26:11 +0000 |
| commit | 8604f138c55ab4904a2fd9b7edce2b688c70e6c0 (patch) | |
| tree | b3cc05536f3b7be32faa9dd75d0babbf5fcdbdc5 /include/stdlib.h | |
| parent | 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212 (diff) | |
Add ifdef guards for C++ code
Diffstat (limited to '')
| -rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 35bff81..312555c 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -9,6 +9,10 @@ | |||
| 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 | ||
| 13 | extern "C" { | ||
| 14 | #endif | ||
| 15 | |||
| 12 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | 16 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 13 | static inline __attribute__ ((always_inline)) | 17 | static inline __attribute__ ((always_inline)) |
| 14 | char * | 18 | char * |
| @@ -32,6 +36,10 @@ __fortify_realpath(const char *path, char *resolved) | |||
| 32 | #define realpath(path, resolved) __fortify_realpath(path, resolved) | 36 | #define realpath(path, resolved) __fortify_realpath(path, resolved) |
| 33 | #endif | 37 | #endif |
| 34 | 38 | ||
| 39 | #ifdef __cplusplus | ||
| 40 | } | ||
| 41 | #endif | ||
| 42 | |||
| 35 | #endif | 43 | #endif |
| 36 | 44 | ||
| 37 | #endif | 45 | #endif |
