From 7eb253056e9962c970dbc4f95e9d5ae71c1c53d3 Mon Sep 17 00:00:00 2001 From: wbhart Date: Sat, 10 Jan 2009 19:12:05 +0000 Subject: [PATCH] Fixed a std::FILE issue in gmp.h and a missing in t-locale.cc --- gmp-h.in | 2 ++ tests/cxx/t-locale.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/gmp-h.in b/gmp-h.in index 9219ab5f..5c5eac44 100644 --- a/gmp-h.in +++ b/gmp-h.in @@ -529,8 +529,10 @@ typedef __mpq_struct *mpq_ptr; #if defined (__cplusplus) extern "C" { +#ifdef _GMP_H_HAVE_FILE using std::FILE; #endif +#endif #define mp_set_memory_functions __gmp_set_memory_functions __GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t), diff --git a/tests/cxx/t-locale.cc b/tests/cxx/t-locale.cc index fb3b8a7a..6382806d 100644 --- a/tests/cxx/t-locale.cc +++ b/tests/cxx/t-locale.cc @@ -21,6 +21,7 @@ MA 02110-1301, USA. */ #include #include +#include #include "gmp.h" #include "gmp-impl.h"