diff options
| author | Trutz Behn | 2015-03-14 20:06:48 +0100 |
|---|---|---|
| committer | sin | 2015-03-14 20:37:27 +0000 |
| commit | 22e7e51007f3a28ded43f6cb8f0ff59a7a691175 (patch) | |
| tree | 3d2ca7e61136adc3f77b817e117699918e0c223a /include/stdlib.h | |
| parent | c2c9d0c6c8a1d74f748aa2ad9442957a37091062 (diff) | |
Use __typeof__ to in part avoid replicating function types
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index e2e4380..22f1f2b 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -15,8 +15,7 @@ extern "C" { | |||
| 15 | 15 | ||
| 16 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | 16 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 17 | #undef realpath | 17 | #undef realpath |
| 18 | extern char *__realpath_orig(const char *, char *) | 18 | __typeof__(realpath) __realpath_orig __asm__(__USER_LABEL_PREFIX__ "realpath"); |
| 19 | __asm__(__USER_LABEL_PREFIX__ "realpath"); | ||
| 20 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) | 19 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 21 | char *realpath(const char *path, char *resolved) | 20 | char *realpath(const char *path, char *resolved) |
| 22 | { | 21 | { |
