Wednesday 05 December 2007 06:07:03 mabshoff yazmıştı:
> gmp:
[...]
>  * uncomment std::FILE -> causes trouble - need clean fix

See attached patch.

Regards,
ismail

-- 
Never learn by your mistakes, if you do you may never dare to try again.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Index: gmp-h.in
===================================================================
--- gmp-h.in.orig	2006-04-11 20:10:15.000000000 +0200
+++ gmp-h.in	2007-05-23 11:08:11.000000000 +0200
@@ -24,6 +24,7 @@ MA 02110-1301, USA. */
 
 #if defined (__cplusplus)
 #include <iosfwd>   /* for std::istream, std::ostream, std::string */
+#include <cstdio>   /* for std::FILE */
 #endif
 
 
@@ -418,9 +419,15 @@ typedef __mpq_struct *mpq_ptr;
 
 /* gcc has __inline__ in all modes, including strict ansi.  Give a prototype
    for an inline too, so as to correctly specify "dllimport" on windows, in
-   case the function is called rather than inlined.  */
+   case the function is called rather than inlined.
+   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__
+#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
+#else
 #define __GMP_EXTERN_INLINE      extern __inline__
+#endif
 #define __GMP_INLINE_PROTOTYPES  1
 #endif
 
Index: tests/cxx/t-locale.cc
===================================================================
--- tests/cxx/t-locale.cc.orig	2006-03-14 16:57:54.000000000 +0100
+++ tests/cxx/t-locale.cc	2007-05-23 15:31:10.000000000 +0200
@@ -20,6 +20,7 @@ the Free Software Foundation, Inc., 51 F
 MA 02110-1301, USA. */
 
 #include <clocale>
+#include <cstdlib>
 #include <iostream>
 
 #include "gmp.h"

Reply via email to