aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-05-28 19:49:24 +0000
committerDJ Delorie <dj@redhat.com>2005-05-28 19:49:24 +0000
commit01e94249b651dfe388b015d54911c35392ef1f0b (patch)
tree451de4aaf2b8e37a288d4a41b105478cddb79ac6 /include/libiberty.h
parentcedea75781cffbdf243b4e1f6e892dcd67620454 (diff)
downloadgdb-01e94249b651dfe388b015d54911c35392ef1f0b.zip
gdb-01e94249b651dfe388b015d54911c35392ef1f0b.tar.gz
gdb-01e94249b651dfe388b015d54911c35392ef1f0b.tar.bz2
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 9af981c..75cbedc 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -531,6 +531,16 @@ extern int vasprintf (char **, const char *, va_list)
ATTRIBUTE_PRINTF(2,0);
#endif
+#if defined(HAVE_DECL_SNPRINTF) && !HAVE_DECL_SNPRINTF
+/* Like sprintf but prints at most N characters. */
+extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3;
+#endif
+
+#if defined(HAVE_DECL_VSNPRINTF) && !HAVE_DECL_VSNPRINTF
+/* Like vsprintf but prints at most N characters. */
+extern int vsnprintf (char *, size_t, const char *, va_list);
+#endif
+
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
/* Drastically simplified alloca configurator. If we're using GCC,