* m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
declarations inside function.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2008-10-25 Eric Blake <ebb9@byu.net>
+
+ signbit: avoid spurious compiler failure
+ * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
+ declarations inside function.
+
2008-10-24 Simon Josefsson <simon@josefsson.org>
Bruno Haible <bruno@clisp.org>
])
AC_DEFUN([gl_SIGNBIT_TEST_PROGRAM], [[
+int main ()
+{
/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
So we use -p0f and -p0d instead. */
float p0f = 0.0f;
#else
long double m0l = -p0l;
#endif
-int main ()
-{
{
float plus_inf = 1.0f / p0f;
float minus_inf = -1.0f / p0f;