summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--printf/obprintf.c2
-rw-r--r--printf/obprntffuns.c2
-rw-r--r--printf/obvprintf.c2
-rw-r--r--printf/repl-vsnprintf.c5
4 files changed, 8 insertions, 3 deletions
diff --git a/printf/obprintf.c b/printf/obprintf.c
index a7fe8f997..4a7517361 100644
--- a/printf/obprintf.c
+++ b/printf/obprintf.c
@@ -55,4 +55,6 @@ gmp_obstack_printf (struct obstack *ob, const char *fmt, ...)
return ret;
}
+#else
+typedef int __gmp_dummy_typedef;
#endif /* HAVE_OBSTACK_VPRINTF */
diff --git a/printf/obprntffuns.c b/printf/obprntffuns.c
index 947125488..b7e19d036 100644
--- a/printf/obprntffuns.c
+++ b/printf/obprntffuns.c
@@ -68,4 +68,6 @@ const struct doprnt_funs_t __gmp_obstack_printf_funs = {
(doprnt_reps_t) gmp_obstack_reps
};
+#else
+typedef int __gmp_dummy_typedef;
#endif /* HAVE_OBSTACK_VPRINTF */
diff --git a/printf/obvprintf.c b/printf/obvprintf.c
index 9a924e298..bfb5f85d4 100644
--- a/printf/obvprintf.c
+++ b/printf/obvprintf.c
@@ -48,4 +48,6 @@ gmp_obstack_vprintf (struct obstack *ob, const char *fmt, va_list ap)
return __gmp_doprnt (&__gmp_obstack_printf_funs, ob, fmt, ap);
}
+#else
+typedef int __gmp_dummy_typedef;
#endif /* HAVE_OBSTACK_VPRINTF */
diff --git a/printf/repl-vsnprintf.c b/printf/repl-vsnprintf.c
index 9ae22c14d..ae18733bc 100644
--- a/printf/repl-vsnprintf.c
+++ b/printf/repl-vsnprintf.c
@@ -35,9 +35,6 @@ see https://www.gnu.org/licenses/. */
#include "config.h"
-#if ! HAVE_VSNPRINTF /* only need this file if we don't have vsnprintf */
-
-
#define _GNU_SOURCE /* for strnlen prototype */
#include <stdarg.h>
@@ -66,6 +63,8 @@ see https://www.gnu.org/licenses/. */
#include "gmp-impl.h"
+#if ! HAVE_VSNPRINTF /* only need this file if we don't have vsnprintf */
+
/* Autoconf notes that AIX 4.3 has a broken strnlen, but fortunately it
doesn't affect us since __gmp_replacement_vsnprintf is not required on
that system. */