[cairo] static inline C code in VC++

Vladimir Vukicevic vladimir at pobox.com
Fri Jan 18 12:31:37 PST 2008


On Jan 18, 2008, at 9:47 AM, Antoine Azar wrote:

> Actually it seems that using __inline instead of inline does the  
> trick:
>
> #ifdef _MSC_VER
> #define STIN static __inline
> #else
> #define STIN static inline
> #endif

Hm, at some point there was something like
#ifdef _MSC_VER
#define inline __inline
#endif

in there, which should also solve the problem, and without needing to  
change the way the functions are written.. wonder what happened to  
that.  For M_PI and friends, you have to #define USE_MATH_DEFINES (or  
similar) -- but I'm pretty sure that's being done in cairoint.h already.

     - Vlad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080118/70739aa0/attachment.html 


More information about the cairo mailing list