New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16634: patch-gmp-gnu-inline.diff

File patch-gmp-gnu-inline.diff, 1.2 KB (added by raimue@…, 3 years ago)
  • gmp.h

     
    11/* Definitions for GNU multiple precision functions.   -*- mode: c -*- 
    22 
    33Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 
    4 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 
     42004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 
    55 
    66This file is part of the GNU MP Library. 
    77 
     
    418418    for an inline too, so as to correctly specify "dllimport" on windows, in 
    419419    case the function is called rather than inlined. 
    420420    GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 
    421     inline semantics, unless -fgnu89-inline is used.  */ 
     421    inline semantics, unless -fgnu89-inline is used. 
     422 
     423   With GCC 4.2, `__GNUC_STDC_INLINE__' is never defined (because C99 inline 
     424   semantics are not supported), but a warning is issued in C99 mode if 
     425   `__gnu_inline__' is not used.  */ 
    422426#ifdef __GNUC__ 
    423 #ifdef __GNUC_STDC_INLINE__ 
     427#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) 
    424428#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__)) 
    425429#else 
    426430#define __GMP_EXTERN_INLINE      extern __inline__