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 /include | |
parent | 5af95dbe5f13d5d33ed6b5f55dce97c281f2ce12 (diff) | |
download | gcc-19ecc7c1742ebd58f7b940da6cee3c6891020f1e.tar.gz |
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 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/libiberty.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index e9a51a7a30b..4a18ed88296 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2015-05-22 Yunlian Jiang <yunlian@google.com> + + * libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is + not defined. + 2015-03-19 Richard Biener <rguenther@suse.de> * partition.h (struct partition_elem): Re-order elements to diff --git a/include/libiberty.h b/include/libiberty.h index b33dd65982d..8e096a0db0c 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -621,7 +621,7 @@ extern int pexecute (const char *, char * const *, const char *, extern int pwait (int, int *, int); -#if !HAVE_DECL_ASPRINTF +#if defined(HAVE_DECL_ASPRINTF) && !HAVE_DECL_ASPRINTF /* Like sprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ |