From 22e7e51007f3a28ded43f6cb8f0ff59a7a691175 Mon Sep 17 00:00:00 2001 From: Trutz Behn Date: Sat, 14 Mar 2015 20:06:48 +0100 Subject: Use __typeof__ to in part avoid replicating function types --- include/stdlib.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/stdlib.h') 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" { #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #undef realpath -extern char *__realpath_orig(const char *, char *) - __asm__(__USER_LABEL_PREFIX__ "realpath"); +__typeof__(realpath) __realpath_orig __asm__(__USER_LABEL_PREFIX__ "realpath"); extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) char *realpath(const char *path, char *resolved) { -- cgit v1.3