blob: df28de9a89ab7e55caf86ef1394a91a8e72e33d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ac,v 1.7 2008/07/14 13:06:23 tonio Exp $
Apple's gcc build >5400 (since Xcode 3.0) doesn't support GNU inline in C99 mode
--- gmp-h.in.orig 2007-09-03 18:05:40.000000000 +0200
+++ gmp-h.in
@@ -423,8 +423,11 @@ typedef __mpq_struct *mpq_ptr;
#ifdef __GNUC_STDC_INLINE__
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
#else
+#if defined(__APPLE_CC__) && __APPLE_CC__ > 5400 && __STDC_VERSION__ >= 199901L
+#else
#define __GMP_EXTERN_INLINE extern __inline__
#endif
+#endif
#define __GMP_INLINE_PROTOTYPES 1
#endif
|