Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 198830 | Differences between
and this patch

Collapse All | Expand All

(-)gmp-4.2.1-orig/gmp-h.in (-3 / +11 lines)
Lines 416-426 Link Here
416
   inline" would be an acceptable substitute if the compiler (or linker)
416
   inline" would be an acceptable substitute if the compiler (or linker)
417
   discards unused statics.  */
417
   discards unused statics.  */
418
418
419
/* gcc has __inline__ in all modes, including strict ansi.  Give a prototype
419
 /* gcc has __inline__ in all modes, including strict ansi.  Give a prototype
420
   for an inline too, so as to correctly specify "dllimport" on windows, in
420
    for an inline too, so as to correctly specify "dllimport" on windows, in
421
   case the function is called rather than inlined.  */
421
    case the function is called rather than inlined.
422
    GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
423
    inline semantics, unless -fgnu89-inline is used.  */
422
#ifdef __GNUC__
424
#ifdef __GNUC__
425
#ifdef __GNUC_STDC_INLINE__
426
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
427
#else
423
#define __GMP_EXTERN_INLINE      extern __inline__
428
#define __GMP_EXTERN_INLINE      extern __inline__
429
#endif
424
#define __GMP_INLINE_PROTOTYPES  1
430
#define __GMP_INLINE_PROTOTYPES  1
425
#endif
431
#endif
426
432
Lines 512-519 Link Here
512
518
513
#if defined (__cplusplus)
519
#if defined (__cplusplus)
514
extern "C" {
520
extern "C" {
521
#ifdef _GMP_H_HAVE_FILE
515
using std::FILE;
522
using std::FILE;
516
#endif
523
#endif
524
#endif
517
525
518
#define mp_set_memory_functions __gmp_set_memory_functions
526
#define mp_set_memory_functions __gmp_set_memory_functions
519
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
527
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
(-)gmp-4.2.1-orig/tests/cxx/t-locale.cc (+1 lines)
Lines 20-25 Link Here
20
MA 02110-1301, USA. */
20
MA 02110-1301, USA. */
21
21
22
#include <clocale>
22
#include <clocale>
23
#include <cstdlib>
23
#include <iostream>
24
#include <iostream>
24
25
25
#include "gmp.h"
26
#include "gmp.h"

Return to bug 198830