* m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
zero.
+2020-08-15 Bruno Haible <bruno@clisp.org>
+
+ frexpl: Fix configuration test result on MSVC.
+ * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
+ zero.
+
2020-08-15 Bruno Haible <bruno@clisp.org>
Support compiling without -loldnames on native Windows.
-# frexpl.m4 serial 21
+# frexpl.m4 serial 22
dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
"C"
#endif
long double frexpl (long double, int *);
+long double zero = 0.0L;
int main()
{
int result = 0;
}
}
/* Test on infinite numbers. */
- x = 1.0L / 0.0L;
+ /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
+ x = 1.0L / zero;
{
int exp;
long double y = frexpl (x, &exp);