[cairo] inline functions

Behdad Esfahbod behdad at behdad.org
Tue Apr 17 00:05:16 PDT 2007

On Mon, 2007-04-16 at 22:35 -0400, XinGang Li wrote:
> since 1.4.4, the __inline specifier of all the inline fuctions
> replaced with  inline.  But  for the  msvc compiler we need to using
> the __inline specifier for the c functions.
> This is a good way to fix this problem:
> Add below code to pixman.h:
> #if defined(_MSC_VER)
> #define inline __inline
> #endif

Thanks.  I asked Pavlov and he thought inline should work...  Anyway, in
that case I need to put it back in cairoint.h too I guess.

BTW, what is this __forceinline thing with MS compilers?  There is this
piece in fbmmx.c:

#ifdef _MSC_VER
#undef inline
#define inline __forceinline

Should I leave it intact?


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list