summaryrefslogtreecommitdiff
path: root/libdecnumber
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-04 21:22:34 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-04 21:22:34 +0000
commite5823527bfb27f404a5e4f0957f36543ea093f44 (patch)
treedf0b0e12adaf7647471e57a684e11de8f7fc8ffc /libdecnumber
parent069b5a3246e4b1408bf00c77362af0ea40a9a349 (diff)
downloadgcc-e5823527bfb27f404a5e4f0957f36543ea093f44.tar.gz
* decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro
definition of strcpy from generating compilation warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109351 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libdecnumber')
-rw-r--r--libdecnumber/ChangeLog6
-rw-r--r--libdecnumber/decNumber.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog
index e509a62c054..d5fdc35ebfd 100644
--- a/libdecnumber/ChangeLog
+++ b/libdecnumber/ChangeLog
@@ -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
diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c
index bc11ace8787..3f5cc9f3a44 100644
--- a/libdecnumber/decNumber.c
+++ b/libdecnumber/decNumber.c
@@ -149,6 +149,10 @@
/* -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 */