diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2008-09-10 21:34:27 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2008-09-10 21:34:27 +0200 |
commit | f15faa9ca5113fcd1da1c1fb05fecb1bea319656 (patch) | |
tree | f6355bf8f37dda907205c0ab5612126b73ab5e15 /gmp-h.in | |
parent | 5339fe33baa7791639a3a699321fccea38611936 (diff) | |
download | gmp-f15faa9ca5113fcd1da1c1fb05fecb1bea319656.tar.gz |
Unconditionally include <cstdio>.
Diffstat (limited to 'gmp-h.in')
-rw-r--r-- | gmp-h.in | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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), |