diff options
author | Bruno Haible <bruno@clisp.org> | 2011-10-09 11:26:58 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-10-09 11:26:58 +0200 |
commit | 60e3ab133c3ffe0bae411a44829498faf8816b34 (patch) | |
tree | 2933e46a99ccae6f0f698224ec96e4f521cafe4c /tests/test-isinf.c | |
parent | 6314401ea71c339d05886365309e5546b335a2bf (diff) | |
download | gnulib-60e3ab133c3ffe0bae411a44829498faf8816b34.tar.gz |
isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
* m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
* modules/isfinite-tests (configure.ac): Require
gl_LONG_DOUBLE_VS_DOUBLE.
* modules/isinf-tests (configure.ac): Likewise.
* modules/isnan-tests (configure.ac): Likewise.
* modules/isnanl-tests (configure.ac): Likewise.
* modules/isnanl-nolibm-tests (configure.ac): Likewise.
* tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
tests on platforms where 'long double' is the same as 'double'.
* tests/test-isinf.c (test_isinfl): Likewise.
* tests/test-isnan.c (test_long_double): Likewise.
* tests/test-isnanl.h (main): Likewise.
Diffstat (limited to 'tests/test-isinf.c')
-rw-r--r-- | tests/test-isinf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-isinf.c b/tests/test-isinf.c index 266cd7e9a0..a17b0af90c 100644 --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -172,7 +172,7 @@ test_isinfl () } #endif -#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) +#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE /* Representation of an 80-bit 'long double' as an initializer for a sequence of 'unsigned int' words. */ # ifdef WORDS_BIGENDIAN |