diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-22 20:53:45 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-22 20:53:45 +0000 |
commit | 19ecc7c1742ebd58f7b940da6cee3c6891020f1e (patch) | |
tree | da3a764bef8f53ed9fa5173bc66cea4ee5d4e8f7 /libiberty/floatformat.c | |
parent | 5af95dbe5f13d5d33ed6b5f55dce97c281f2ce12 (diff) |
include/:
* libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is
not defined.
libiberty/:
* configure.ac: Add AC_GNU_SOURCE.
* Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
* configure, config.in: Rebuild.
* floatformat.c (_GNU_SOURCE): Don't define if already defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/floatformat.c')
-rw-r--r-- | libiberty/floatformat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index 789fa05777d..9190e1469d9 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -1,5 +1,5 @@ /* IEEE floating point support routines, for GDB, the GNU Debugger. - Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006, 2010, 2012 + Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006, 2010, 2012, 2015 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ /* This is needed to pick up the NAN macro on some systems. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #ifdef HAVE_CONFIG_H #include "config.h" |