This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PPC mathdef.h warning


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'.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]