[cairo] static inline C code in VC++

Behdad Esfahbod behdad at behdad.org
Fri Jan 18 09:19:06 PST 2008

On Fri, 2008-01-18 at 11:47 -0500, Antoine Azar wrote:
> Hey all,
> it seems that Visual Studio's C compiler isn't totally up to date, 
> and chokes on static inline functions. I see there are a bunch of 
> functions declared static inline in cairo-fixed-private.h, and this 
> breaks compilation on Windows. A simple fix would be to simply drop 
> the inline keyword on MSCVER. Anyone has any objections or other suggestions?

Sounds good as long as you limit that to the broken versions of the
compiler only.  Check out cairo-compiler-private.h.

> Thanks,
> Antoine


"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