[PATCH] PPC mathdef.h warning
Steven Munroe
sjmunroe@us.ibm.com
Fri Apr 4 21:22:00 GMT 2003
sysdeps/powerpc/fpu/bits/mathdef.h defines FLT_EVAL_METHOD which is also
defined by gcc's float.h. This causes a multiply defined warning in glibc. So
in mathdef.h add an #undef before defining FLT_EVAL_METHOD.
2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
defining.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
-------------- next part --------------
diff -urN libc23-cvstip-20030404/sysdeps/powerpc/fpu/bits/mathdef.h libc23/sysdeps/powerpc/fpu/bits/mathdef.h
--- libc23-cvstip-20030404/sysdeps/powerpc/fpu/bits/mathdef.h 2001-07-05 23:56:02.000000000 -0500
+++ libc23/sysdeps/powerpc/fpu/bits/mathdef.h 2003-04-04 13:57:28.000000000 -0600
@@ -40,6 +40,7 @@
`double'. */
/* Signal that types stay as they were declared. */
+# undef FLT_EVAL_METHOD
# define FLT_EVAL_METHOD 0
/* Define `INFINITY' as value of type `float'. */
More information about the Libc-alpha
mailing list