autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_C_LONG_DOUBLE is wrong on IRIX 5.3


From: Paul Eggert
Subject: Re: AC_C_LONG_DOUBLE is wrong on IRIX 5.3
Date: Tue, 13 Nov 2001 09:10:25 -0800 (PST)

> Date: Tue, 13 Nov 2001 15:50:00 +0000
> From: Oliver Kiddle <address@hidden>
> 
> How can I compare DBL_MAX and LDBL_MAX at compile-time?

int a[LDBL_MAX <= DBL_MAX ? -1 : 1];

> To catch float.h being missing, can I just #include it and rely on the
> failure of the C compiler to force a negative result to the test?

Yes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]