diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 03:04:42 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 09:32:34 -0500 |
commit | f074c07d8d4d36d2712117eace2e4db48d544291 (patch) | |
tree | f5057cf0105f31058c459b9ddf2408b8accc3c85 /sim/common | |
parent | f8cab0b99583f29de8250497bd714099702e1f39 (diff) | |
download | gdb-f074c07d8d4d36d2712117eace2e4db48d544291.zip gdb-f074c07d8d4d36d2712117eace2e4db48d544291.tar.gz gdb-f074c07d8d4d36d2712117eace2e4db48d544291.tar.bz2 |
sim: common: clean up asprintf includes a bit
Delete stale prototypes that libiberty.h already provides, and add
missing libiberty.h includes to files that use those functions.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-basics.h | 5 | ||||
-rw-r--r-- | sim/common/sim-core.c | 1 | ||||
-rw-r--r-- | sim/common/sim-watch.c | 1 |
4 files changed, 7 insertions, 5 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index c75ffd5..e525110 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,10 @@ 2021-01-09 Mike Frysinger <vapier@gentoo.org> + * sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete. + * sim-core.c, sim-watch.c: Include libiberty.h. + +2021-01-09 Mike Frysinger <vapier@gentoo.org> + * acinclude.m4: Replace duplicate text with pointer to README-HACKING. 2021-01-09 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h index 8634f42..52c9b2f 100644 --- a/sim/common/sim-basics.h +++ b/sim/common/sim-basics.h @@ -37,11 +37,6 @@ #include <stdio.h> #include <setjmp.h> -#ifdef __CYGWIN32__ -extern int vasprintf (char **result, const char *format, va_list args); -extern int asprintf (char **result, const char *format, ...); -#endif - #ifndef NULL #define NULL 0 diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index 5382306..ade345e 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -25,6 +25,7 @@ #include "sim-main.h" #include "sim-assert.h" +#include "libiberty.h" #if (WITH_HW) #include "sim-hw.h" diff --git a/sim/common/sim-watch.c b/sim/common/sim-watch.c index 9526650..9c929a1 100644 --- a/sim/common/sim-watch.c +++ b/sim/common/sim-watch.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" #include "sim-main.h" #include "sim-options.h" +#include "libiberty.h" #include "sim-assert.h" |