diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-03-28 09:36:28 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-03-28 09:36:28 +0000 |
commit | 5a6a773f6c388e7740afb495fcd03d3b500f30cb (patch) | |
tree | ad7b4e3dd8bb8a750bf6b3a016c591e5d98026dc /wcsmbs | |
parent | 0c20be13c576b849ab201bd887a6585973a49d0e (diff) | |
download | glibc-5a6a773f6c388e7740afb495fcd03d3b500f30cb.tar.gz glibc-5a6a773f6c388e7740afb495fcd03d3b500f30cb.tar.xz glibc-5a6a773f6c388e7740afb495fcd03d3b500f30cb.zip |
Updated to fedora-glibc-20060328T0900 cvs/fedora-
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/wchar.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h index 670dc79c4a..5dc7e19345 100644 --- a/wcsmbs/wchar.h +++ b/wcsmbs/wchar.h @@ -321,6 +321,7 @@ __END_NAMESPACE_C99 #ifdef __USE_EXTERN_INLINES /* Define inline function as optimization. */ +# ifndef __cplusplus /* We can use the BTOWC and WCTOB optimizations since we know that all locales must use ASCII encoding for the values in the ASCII range and because the wchar_t encoding is always ISO 10646. */ @@ -335,6 +336,7 @@ extern __inline int __NTH (wctob (wint_t __wc)) { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' ? (int) __wc : __wctob_alias (__wc)); } +# endif extern __inline size_t __NTH (mbrlen (__const char *__restrict __s, size_t __n, @@ -507,26 +509,30 @@ extern long double __wcstold_internal (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __group) __THROW; -#ifndef __wcstol_internal_defined +#if !defined __wcstol_internal_defined \ + && defined __OPTIMIZE__ && __GNUC__ >= 2 extern long int __wcstol_internal (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, int __group) __THROW; # define __wcstol_internal_defined 1 #endif -#ifndef __wcstoul_internal_defined +#if !defined __wcstoul_internal_defined \ + && defined __OPTIMIZE__ && __GNUC__ >= 2 extern unsigned long int __wcstoul_internal (__const wchar_t *__restrict __npt, wchar_t **__restrict __endptr, int __base, int __group) __THROW; # define __wcstoul_internal_defined 1 #endif -#ifndef __wcstoll_internal_defined +#if !defined __wcstoll_internal_defined \ + && defined __OPTIMIZE__ && __GNUC__ >= 2 __extension__ extern long long int __wcstoll_internal (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, int __group) __THROW; # define __wcstoll_internal_defined 1 #endif -#ifndef __wcstoull_internal_defined +#if !defined __wcstoull_internal_defined \ + && defined __OPTIMIZE__ && __GNUC__ >= 2 __extension__ extern unsigned long long int __wcstoull_internal (__const wchar_t * __restrict __nptr, |