From 455cd6cadefb6f287fb423773ce397dd265cc5bc Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 3 May 2012 13:04:14 +0200 Subject: rpmatch: provide out-of-line implementation Signed-off-by: Bernhard Reutner-Fischer --- include/stdlib.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index 8ea6541f0..fdefe4aa4 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -833,12 +833,7 @@ __END_NAMESPACE_STD or negative response expression as specified by the LC_MESSAGES category in the program's current locale. Returns 1 if affirmative, 0 if negative, and -1 if not matching. */ -/* __THROW */ -static __inline __nonnull ((1)) __wur int rpmatch (__const char *__response) -{ - return (__response[0] == 'y' || __response[0] == 'Y') ? 1 : - (__response[0] == 'n' || __response[0] == 'N') ? 0 : -1; -} +extern int rpmatch (__const char *__response) __THROW __nonnull ((1)) __wur; #endif -- cgit v1.2.3