diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-04-23 16:52:37 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-04-23 16:52:37 -0700 |
commit | 5ce45dfe27bec377c08fcc8aa83a8dfef18144ee (patch) | |
tree | 1306d22d58cf7b010a8c19a508e356a3de35ce7a | |
parent | fff1116341c5b60a69c9488304b80fa097e08e3e (diff) | |
download | klibc-5ce45dfe27bec377c08fcc8aa83a8dfef18144ee.tar.gz |
[klibc] ctype: provide prototypes even if we aren't inlining.klibc-1.3.10
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | include/ctype.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/ctype.h b/include/ctype.h index 8da9a5f1a20e7..c452b77ea06f5 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -7,6 +7,8 @@ #ifndef _CTYPE_H #define _CTYPE_H +#include <klibc/extern.h> + /* * This relies on the following definitions: * @@ -110,12 +112,17 @@ static inline int __ctype_tolower(int __c) return __ctype_isupper(__c) ? _tolower(__c) : __c; } -#ifndef __CTYPE_NO_INLINE +#ifdef __CTYPE_NO_INLINE +# define __CTYPEFUNC(X) \ + __extern int X(int); +#else #define __CTYPEFUNC(X) \ - extern inline int X(int __c) \ + __extern inline int X(int __c) \ { \ return __ctype_##X(__c); \ } +#endif + __CTYPEFUNC(isalnum) __CTYPEFUNC(isalpha) __CTYPEFUNC(isascii) @@ -131,6 +138,5 @@ __CTYPEFUNC(isupper) __CTYPEFUNC(isxdigit) __CTYPEFUNC(toupper) __CTYPEFUNC(tolower) -#endif /* __CTYPE_NO_INLINE */ #endif /* _CTYPE_H */ |