summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
Diffstat (limited to 'gmp-h.in')
-rw-r--r--gmp-h.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/gmp-h.in b/gmp-h.in
index 1bb9b4156..0488a5ad5 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -22,6 +22,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#if defined (__cplusplus)
#include <iosfwd> /* for std::istream, std::ostream, std::string */
+#include <cstdio>
#endif
@@ -420,7 +421,7 @@ typedef __mpq_struct *mpq_ptr;
GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
inline semantics, unless -fgnu89-inline is used. */
#ifdef __GNUC__
-#ifdef __GNUC_STDC_INLINE__
+#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2)
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
#else
#define __GMP_EXTERN_INLINE extern __inline__
@@ -516,10 +517,8 @@ 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),