aboutsummaryrefslogtreecommitdiff
path: root/binutils/bucomm.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2006-02-09 11:49:53 +0000
committerEric Botcazou <ebotcazou@libertysurf.fr>2006-02-09 11:49:53 +0000
commitdb50c8404c624dfe903294d439c54a6db7c6d6c8 (patch)
tree874d08b3b39f37476ae09cda3d562e765b4fde8d /binutils/bucomm.h
parent0f699bbe04b7247382b913e0e63375454d864b73 (diff)
downloadbinutils-db50c8404c624dfe903294d439c54a6db7c6d6c8.zip
binutils-db50c8404c624dfe903294d439c54a6db7c6d6c8.tar.gz
binutils-db50c8404c624dfe903294d439c54a6db7c6d6c8.tar.bz2
* configure.in (CHECK_DECLS): Add snprintf and vsnprintf.
* configure: Regenerate. * objdump.c (fprintf): Remove declaration. * bucomm.h (fprintf): Declare if not already declared. (snprintf): Likewise. (vsnprintf): Likewise.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r--binutils/bucomm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h
index 2c662c8..9f914ad 100644
--- a/binutils/bucomm.h
+++ b/binutils/bucomm.h
@@ -90,6 +90,18 @@ extern char *getenv ();
extern char **environ;
#endif
+#if !HAVE_DECL_FPRINTF
+extern int fprintf (FILE *, const char *, ...);
+#endif
+
+#if !HAVE_DECL_SNPRINTF
+extern int snprintf(char *, size_t, const char *, ...);
+#endif
+
+#if !HAVE_DECL_VSNPRINTF
+extern int vsnprintf(char *, size_t, const char *, va_list);
+#endif
+
#ifndef O_RDONLY
#define O_RDONLY 0
#endif