diff options
Diffstat (limited to 'wcsmbs/wchar.h')
-rw-r--r-- | wcsmbs/wchar.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h index db3c08d833..ec222ea082 100644 --- a/wcsmbs/wchar.h +++ b/wcsmbs/wchar.h @@ -264,7 +264,7 @@ extern long int __wcstol_internal __P ((__const wchar_t *__nptr, extern unsigned long int __wcstoul_internal __P ((__const wchar_t *__nptr, wchar_t **__endptr, int __base, int __group)); -#ifdef __GNUC__ +#if defined __GNUC__ && defined __USE_GNU extern long long int __wcstoq_internal __P ((__const wchar_t *__nptr, wchar_t **__endptr, int __base, int __group)); @@ -272,7 +272,7 @@ extern unsigned long long int __wcstouq_internal __P ((__const wchar_t *__nptr, wchar_t **__endptr, int __base, int __group)); -#endif /* GCC */ +#endif /* GCC and use GNU. */ #if defined (__OPTIMIZE__) && __GNUC__ >= 2 @@ -293,16 +293,15 @@ extern __inline float wcstof (__const wchar_t *__nptr, wchar_t **__endptr) extern __inline __long_double_t wcstold (__const wchar_t *__nptr, wchar_t **__endptr) { return __wcstold_internal (__nptr, __endptr, 0); } -#endif -#ifdef __USE_BSD + extern __inline long long int wcstoq (__const wchar_t *__nptr, wchar_t **__endptr, int __base) { return __wcstoq_internal (__nptr, __endptr, __base, 0); } extern __inline unsigned long long int wcstouq (__const wchar_t *__nptr, wchar_t **__endptr, int __base) { return __wcstouq_internal (__nptr, __endptr, __base, 0); } -#endif +#endif /* Use GNU. */ #endif /* Optimizing GCC >=2. */ |