diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-09 12:06:58 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-09 12:06:58 +0000 |
commit | 54365d35cb77a69382a8d1bbeb9d3008077e572b (patch) | |
tree | a10606d1c808eadff5627f313d62b80b44e822a6 | |
parent | 96c028b213f14921bad01b05c0df5fceb5e5a743 (diff) |
Hush compiler for extern inline warnings by using
__extern_inline macro, this also makes gcc 4.3 happy.
(Taken from NPTL branch)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | include/ctype.h | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/cmathcalls.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/ctype.h b/include/ctype.h index 78cff7daa..184b47b51 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -239,13 +239,13 @@ __exctype (_tolower); # endif # ifdef __USE_EXTERN_INLINES -extern __inline int +__extern_inline int __NTH (tolower (int __c)) { return __UCLIBC_CTYPE_IN_TO_DOMAIN(__c) ? (__UCLIBC_CTYPE_TOLOWER)[__c] : __c; } -extern __inline int +__extern_inline int __NTH (toupper (int __c)) { return __UCLIBC_CTYPE_IN_TO_DOMAIN(__c) ? (__UCLIBC_CTYPE_TOUPPER)[__c] : __c; diff --git a/libc/sysdeps/linux/common/bits/cmathcalls.h b/libc/sysdeps/linux/common/bits/cmathcalls.h index c680c6d8e..35237b35d 100644 --- a/libc/sysdeps/linux/common/bits/cmathcalls.h +++ b/libc/sysdeps/linux/common/bits/cmathcalls.h @@ -135,21 +135,21 @@ __MATHDECL (_Mdouble_,creal, (_Mdouble_complex_ __z)); #if defined __GNUC__ && !__GNUC_PREREQ (2, 97) && defined __OPTIMIZE__ /* Imaginary part of Z. */ -extern __inline _Mdouble_ +__extern_inline _Mdouble_ __MATH_PRECNAME(cimag) (_Mdouble_complex_ __z) __THROW { return __imag__ __z; } /* Real part of Z. */ -extern __inline _Mdouble_ +__extern_inline _Mdouble_ __MATH_PRECNAME(creal) (_Mdouble_complex_ __z) __THROW { return __real__ __z; } /* Complex conjugate of Z. */ -extern __inline _Mdouble_complex_ +__extern_inline _Mdouble_complex_ __MATH_PRECNAME(conj) (_Mdouble_complex_ __z) __THROW { return __extension__ ~__z; |