Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 135805 Details for
Bug 198830
[gcc43] dev-libs/gmp-4.2.1-r1 include / inline patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gmp-4.2.1_gcc43.patch
gmp-4.2.1_gcc43.patch (text/plain), 1.68 KB, created by
Ryan Hill (RETIRED)
on 2007-11-12 07:52:25 UTC
(
hide
)
Description:
gmp-4.2.1_gcc43.patch
Filename:
MIME Type:
Creator:
Ryan Hill (RETIRED)
Created:
2007-11-12 07:52:25 UTC
Size:
1.68 KB
patch
obsolete
>diff -Naur gmp-4.2.1-orig/gmp-h.in gmp-4.2.1/gmp-h.in >--- gmp-4.2.1-orig/gmp-h.in 2006-04-11 12:10:15.000000000 -0600 >+++ gmp-4.2.1/gmp-h.in 2007-11-12 01:35:00.000000000 -0600 >@@ -416,11 +416,17 @@ > inline" would be an acceptable substitute if the compiler (or linker) > discards unused statics. */ > >-/* gcc has __inline__ in all modes, including strict ansi. Give a prototype >- for an inline too, so as to correctly specify "dllimport" on windows, in >- case the function is called rather than inlined. */ >+ /* gcc has __inline__ in all modes, including strict ansi. Give a prototype >+ for an inline too, so as to correctly specify "dllimport" on windows, in >+ case the function is called rather than inlined. >+ GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 >+ inline semantics, unless -fgnu89-inline is used. */ > #ifdef __GNUC__ >+#ifdef __GNUC_STDC_INLINE__ >+#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__)) >+#else > #define __GMP_EXTERN_INLINE extern __inline__ >+#endif > #define __GMP_INLINE_PROTOTYPES 1 > #endif > >@@ -512,8 +518,10 @@ > > #if defined (__cplusplus) > extern "C" { >+#ifdef _GMP_H_HAVE_FILE > using std::FILE; > #endif >+#endif > > #define mp_set_memory_functions __gmp_set_memory_functions > __GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t), >diff -Naur gmp-4.2.1-orig/tests/cxx/t-locale.cc gmp-4.2.1/tests/cxx/t-locale.cc >--- gmp-4.2.1-orig/tests/cxx/t-locale.cc 2006-03-14 09:57:54.000000000 -0600 >+++ gmp-4.2.1/tests/cxx/t-locale.cc 2007-11-12 01:36:04.000000000 -0600 >@@ -20,6 +20,7 @@ > MA 02110-1301, USA. */ > > #include <clocale> >+#include <cstdlib> > #include <iostream> > > #include "gmp.h"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198830
:
135778
| 135805