diff options
| author | sin | 2015-03-13 23:09:15 +0000 |
|---|---|---|
| committer | sin | 2015-03-13 23:09:15 +0000 |
| commit | d12254166a55d17932ea4143fbd50fb52539ff8b (patch) | |
| tree | 5305a94b78698f8d94b20370e59647276c7b47d0 /include/stdlib.h | |
| parent | c4abf4497ba24d716250af4186757b5c5952f54e (diff) | |
Restore C++ support
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index f4a026b..9d3698a 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -9,7 +9,9 @@ | |||
| 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 | #ifndef __cplusplus | 12 | #ifdef __cplusplus |
| 13 | extern "C" { | ||
| 14 | #endif | ||
| 13 | 15 | ||
| 14 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | 16 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 15 | #undef realpath | 17 | #undef realpath |
| @@ -33,6 +35,8 @@ char *realpath(const char *path, char *resolved) | |||
| 33 | } | 35 | } |
| 34 | #endif | 36 | #endif |
| 35 | 37 | ||
| 38 | #ifdef __cplusplus | ||
| 39 | } | ||
| 36 | #endif | 40 | #endif |
| 37 | 41 | ||
| 38 | #endif | 42 | #endif |
