This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] math.h: fix guards on basic M_ constants


On Jul 15 09:18, Yaakov Selkowitz wrote:
> MAXFLOAT, M_PI, and friends date back to at least XPG4v2, so this guard
> was incorrect even prior to the feature test macros overhaul.
> 
> Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
> ---
>  newlib/libc/include/math.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
> index 3725ac0..ebbdac6 100644
> --- a/newlib/libc/include/math.h
> +++ b/newlib/libc/include/math.h
> @@ -628,7 +628,7 @@ extern int matherr _PARAMS((struct exception *e));
>  
>  /* Useful constants.  */
>  
> -#if __BSD_VISIBLE || __XSI_VISIBLE >= 500
> +#if __BSD_VISIBLE || __XSI_VISIBLE
>  
>  #define MAXFLOAT	3.40282347e+38F

ACK


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]