summaryrefslogtreecommitdiff
path: root/tests/mpf_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mpf_compat.h')
-rw-r--r--tests/mpf_compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mpf_compat.h b/tests/mpf_compat.h
index cccbb1941..d26bf5f62 100644
--- a/tests/mpf_compat.h
+++ b/tests/mpf_compat.h
@@ -20,7 +20,11 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
MA 02110-1301, USA. */
+#if defined (__cplusplus)
+#include <cstdio>
+#else
#include <stdio.h>
+#endif
#include <stdlib.h>
#include <string.h>