Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3/gmp/dist Always use extern __inline__ with gc...
details: https://anonhg.NetBSD.org/src/rev/7e07fc5fe41f
branches: trunk
changeset: 783350:7e07fc5fe41f
user: cegger <cegger%NetBSD.org@localhost>
date: Sun Dec 16 14:40:07 2012 +0000
description:
Always use extern __inline__ with gcc >= 4.2.
Fall back to prototypes on older gcc versions.
Fixes link errors (duplicate symbols) when mpfr's configure check for libgmp
diffstat:
external/lgpl3/gmp/dist/gmp-h.in | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r a8ca01b8fec3 -r 7e07fc5fe41f external/lgpl3/gmp/dist/gmp-h.in
--- a/external/lgpl3/gmp/dist/gmp-h.in Sun Dec 16 13:49:48 2012 +0000
+++ b/external/lgpl3/gmp/dist/gmp-h.in Sun Dec 16 14:40:07 2012 +0000
@@ -421,10 +421,9 @@
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 __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2)
+#if (defined __GNUC_STDC_INLINE__) || \
+ (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__GNUC__ > 4)
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
-#else
-#define __GMP_EXTERN_INLINE extern __inline__
#endif
#define __GMP_INLINE_PROTOTYPES 1
#endif
Home |
Main Index |
Thread Index |
Old Index