blob: f0d05e9f4ddf42b946b41bb0cb04840cbdb257b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ac,v 1.9 2008/11/20 16:44:45 adam Exp $
--- gmp-h.in.orig 2008-09-10 23:02:01.000000000 +0200
+++ gmp-h.in
@@ -421,6 +421,8 @@ 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__
+#if defined(__APPLE_CC__) && __APPLE_CC__ > 5400 && __STDC_VERSION__ >= 199901L
+#else
#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2)
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
#else
@@ -428,6 +430,7 @@ typedef __mpq_struct *mpq_ptr;
#endif
#define __GMP_INLINE_PROTOTYPES 1
#endif
+#endif
/* DEC C (eg. version 5.9) supports "static __inline foo()", even in -std1
strict ANSI mode. Inlining is done even when not optimizing (ie. -O0
|