OSDN Git Service

* decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2006 21:22:34 +0000 (21:22 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2006 21:22:34 +0000 (21:22 +0000)
definition of strcpy from generating compilation warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109351 138bc75d-0d04-0410-961f-82ee72b054a4

libdecnumber/ChangeLog
libdecnumber/decNumber.c

index e509a62..d5fdc35 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-03  Roger Sayle  <roger@eyesopen.com>
+           Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro
+       definition of strcpy from generating compilation warnings.
+
 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
 
         PR target/25259
index bc11ace..3f5cc9f 100644 (file)
 /*      -ve -- negative                                               */
 /* ------------------------------------------------------------------ */
 
+/* Some of glibc's string inlines cause warnings.  Plus we'd rather
+   rely on (and therefore test) GCC's string builtins.  */
+#define __NO_STRING_INLINES
+
 #include <stdlib.h>            /* for malloc, free, etc. */
 #include <stdio.h>             /* for printf [if needed] */
 #include <string.h>            /* for strcpy */