<html>
<body>
Actually it seems that using __inline instead of inline does the
trick:<br><br>
<font face="Arial, Helvetica" color="#0000FF">#ifdef</font>
<font face="Arial, Helvetica"> _MSC_VER<br>
</font><font face="Arial, Helvetica" color="#0000FF">#define</font>
<font face="Arial, Helvetica"> STIN
</font><font face="Arial, Helvetica" color="#0000FF">static</font>
<font face="Arial, Helvetica">
</font><font face="Arial, Helvetica" color="#0000FF">__inline<br>
#else<br>
</font><font face="Arial, Helvetica" color="#808080">#define STIN static
inline<br>
</font><font face="Arial, Helvetica" color="#0000FF">#endif<br><br>
</font>this works fine. Strange.<br>
Antoine<br><br>
<br>
At 12:35 PM 1/18/2008, Antoine Azar wrote:<br>
<blockquote type=cite class=cite cite="">I dropped the keyword if
_MSC_VER is defined only. It seems all <br>
versions of Visual C++ will fail on this, as I'm using 2008 and I'm <br>
seeing reports of people on VC++ 6.0 having the same issue. Using <br>
_MSC_VER should still leave "static inline" for Windows folks
using <br>
something else than VC++.<br><br>
Thanks,<br>
Antoine<br><br>
<br>
At 12:19 PM 1/18/2008, Behdad Esfahbod wrote:<br>
>On Fri, 2008-01-18 at 11:47 -0500, Antoine Azar wrote:<br>
> > Hey all,<br>
> ><br>
> > it seems that Visual Studio's C compiler isn't totally up to
date,<br>
> > and chokes on static inline functions. I see there are a bunch
of<br>
> > functions declared static inline in cairo-fixed-private.h, and
this<br>
> > breaks compilation on Windows. A simple fix would be to simply
drop<br>
> > the inline keyword on MSCVER. Anyone has any objections or
other <br>
> suggestions?<br>
><br>
>Sounds good as long as you limit that to the broken versions of
the<br>
>compiler only. Check out cairo-compiler-private.h.<br>
><br>
> > Thanks,<br>
> > Antoine<br>
><br>
>--<br>
>behdad<br>
><a href="http://behdad.org/" eudora="autourl">http://behdad.org/</a>
<br>
><br>
>"Those who would give up Essential Liberty to purchase a
little<br>
> Temporary Safety, deserve neither Liberty nor
Safety."<br>
> -- Benjamin
Franklin, 1759<br><br>
_______________________________________________<br>
cairo mailing list<br>
cairo@cairographics.org<br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" eudora="autourl">
http://lists.cairographics.org/mailman/listinfo/cairo</a></blockquote>
</body>
</html>