This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC mathdef.h warning
- From: Steven Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>, alanm at bigpond dot net dot au
- Date: Fri, 04 Apr 2003 14:57:02 -0600
- Subject: [PATCH] PPC mathdef.h warning
- Organization: IBM Linux Developement
- Reply-to: sjmunroe at vnet dot ibm dot com
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 at us dot ibm dot com>
* sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
defining.
--
Steven Munroe
sjmunroe at us dot ibm dot com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
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'. */