summaryrefslogtreecommitdiff
path: root/mpfr-impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr-impl.h')
-rw-r--r--mpfr-impl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpfr-impl.h b/mpfr-impl.h
index 7ca2d9717..a00363287 100644
--- a/mpfr-impl.h
+++ b/mpfr-impl.h
@@ -31,7 +31,11 @@ MA 02110-1301, USA. */
(which is very unlikely and probably means something broken in
this source file), we should do that with some macro (that would
also force to disable incompatible features). */
+#if defined (__cplusplus)
+#include <cstdio>
+#else
#include <stdio.h>
+#endif
#include <limits.h>
/* Check if we are inside a build of MPFR or inside the test suite.