summaryrefslogtreecommitdiffstats
path: root/include/gmputil.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gmputil.h')
-rw-r--r--include/gmputil.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/gmputil.h b/include/gmputil.h
index 9c372216..084aa622 100644
--- a/include/gmputil.h
+++ b/include/gmputil.h
@@ -7,9 +7,10 @@
#include <gmp.h>
#else
#include <mini-gmp.h>
-/* mini-gmp doesn't come with gmp_printf, so we use our own minimal variant */
-extern int mpz_printf(const char *format, const mpz_t value);
-#define gmp_printf mpz_printf
+#include <stdio.h>
+/* mini-gmp doesn't come with gmp_vfprintf, so we use our own minimal variant */
+extern int mpz_vfprintf(FILE *fp, const char *format, va_list args);
+#define gmp_vfprintf mpz_vfprintf
#endif
#include <asm/byteorder.h>