[PATCH 1/2] math.h: declare isinfl, isnanl for Cygwin

Corinna Vinschen vinschen@redhat.com
Mon Apr 4 13:56:00 GMT 2016


On Apr  1 17:49, Yaakov Selkowitz wrote:
> libstdc++ requires these to be declared in order to be enabled.
> 
> Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
> ---
>  newlib/libc/include/math.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
> index e5d6123..a69abe9 100644
> --- a/newlib/libc/include/math.h
> +++ b/newlib/libc/include/math.h
> @@ -460,6 +460,8 @@ extern long double fmodl _PARAMS((long double, long double));
>  extern long double hypotl _PARAMS((long double, long double));
>  #endif /* ! defined (__math_68881) */
>  #endif /* ! defined (_REENT_ONLY) */
> +extern int isnanl _PARAMS((long double));
> +extern int isinfl _PARAMS((long double));
>  extern long double copysignl _PARAMS((long double, long double));
>  extern long double nanl _PARAMS((const char *));
>  extern int ilogbl _PARAMS((long double));
> -- 
> 2.7.4

Ok, but please guard them with extra __CYGWIN_ checks for now.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160404/297ac18e/attachment.sig>


More information about the Newlib mailing list