Files
pkgsrc-ng/devel/gmp/patches/patch-ac
2013-09-26 17:14:40 +02:00

22 lines
890 B
Plaintext

$NetBSD: patch-ac,v 1.10 2013/01/31 20:30:26 adam Exp $
--- gmp-h.in.orig 2012-12-18 19:05:09.000000000 +0000
+++ gmp-h.in
@@ -359,6 +359,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) \
|| (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
@@ -367,6 +369,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