patches/gmp-02-extern-inline-gmp-h.in.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2783 ebb6ee3bb662
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2783
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     1
http://gmplib.org/list-archives/gmp-discuss/2010-February/004031.html
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     2
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     3
fixed in some 5.x version but not yet in 4.x (if at all)
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     4
--- gmp-4.3.2/gmp-h.in.orig	2010-01-07 21:09:02.000000000 +0100
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     5
+++ gmp-4.3.2/gmp-h.in	2010-06-06 03:31:31.740609132 +0200
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     6
@@ -463,7 +463,7 @@
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     7
 /* Recent enough Sun C compilers accept "extern inline" */
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     8
 #if defined (__SUNPRO_C) && __SUNPRO_C >= 0x560 \
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
     9
   && ! defined (__GMP_EXTERN_INLINE)
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
    10
-#define __GMP_EXTERN_INLINE  extern inline
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
    11
+#define __GMP_EXTERN_INLINE  inline
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
    12
 #endif
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
    13
 
ebb6ee3bb662 SFEmpfr bump to 2.4.2 - adjust location of SFEgmp, always require SFEgmp
tom68
parents:
diff changeset
    14
 /* Somewhat older Sun C compilers accept "static inline" */