]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro definition of strcpy...
authorRoger Sayle <roger@eyesopen.com>
Wed, 4 Jan 2006 21:22:34 +0000 (21:22 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 4 Jan 2006 21:22:34 +0000 (21:22 +0000)
* decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro
definition of strcpy from generating compilation warnings.

Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
From-SVN: r109351

libdecnumber/ChangeLog
libdecnumber/decNumber.c

index e509a62c0540acf8dfe8888d24474988aed5c273..d5fdc35ebfd3cc9e66a78f3fe57ebab32f0f55ec 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 bc11ace87872996d2914768d3cec8f79d6a1e12d..3f5cc9f3a44658915664b237e2fbf4aa346aaf96 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 */