From 27c0e0d8630de8efbbd633ffb425c85515a5e89d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 16 Mar 2006 22:11:04 +0000 Subject: * wcsmbs/wchar.h (__wcstol_internal, __wcstoul_internal): Declare these only when we will use them, under [__OPTIMIZE__ && __GNUC__ >= 2]. (__wcstoll_internal, __wcstoull_internal_defined): Likewise. --- wcsmbs/wchar.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'wcsmbs/wchar.h') diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h index 670dc79..5e4c717 100644 --- a/wcsmbs/wchar.h +++ b/wcsmbs/wchar.h @@ -507,26 +507,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, -- cgit v1.1