From 5be8a59b4fe529299ed61e911d4c12d3e7f63814 Mon Sep 17 00:00:00 2001 From: Marco Bodrato Date: Sun, 25 Feb 2018 17:21:31 +0100 Subject: Avoid empty translation units. --- printf/obprintf.c | 2 ++ printf/obprntffuns.c | 2 ++ printf/obvprintf.c | 2 ++ printf/repl-vsnprintf.c | 5 ++--- 4 files changed, 8 insertions(+), 3 deletions(-) (limited to 'printf') 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 @@ -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. */ -- cgit v1.2.1