<br><br><div><span class="gmail_quote">2007/4/17, Behdad Esfahbod &lt;<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 2007-04-16 at 22:35 -0400, XinGang Li wrote:<br>&gt; since 1.4.4, the __inline specifier of all the inline fuctions<br>&gt; replaced with&nbsp;&nbsp;inline.&nbsp;&nbsp;But&nbsp;&nbsp;for the&nbsp;&nbsp;msvc compiler we need to using<br>&gt; the __inline specifier for the c functions.
<br>&gt;<br>&gt; This is a good way to fix this problem:<br>&gt;<br>&gt; Add below code to pixman.h:<br>&gt;<br>&gt; #if defined(_MSC_VER)<br>&gt; #define WARN_UNUSED_RESULT<br>&gt; #define inline __inline<br>&gt; #endif<br>
<br><br>Thanks.&nbsp;&nbsp;I asked Pavlov and he thought inline should work...&nbsp;&nbsp;Anyway, in<br>that case I need to put it back in cairoint.h too I guess.<br><br>BTW, what is this __forceinline thing with MS compilers?&nbsp;&nbsp;There is this
<br>piece in fbmmx.c:<br><br>#ifdef _MSC_VER<br>#undef inline<br>#define inline __forceinline<br>#endif<br><br><br>Should I leave it intact?<br><br>--<br>behdad<br><a href="http://behdad.org/">http://behdad.org/</a><br><br>
&quot;Those who would give up Essential Liberty to purchase a little<br> Temporary Safety, deserve neither Liberty nor Safety.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Benjamin Franklin, 1759<br><br><br><br></blockquote></div><br>I&#39;m not sure it&#39;s a good thing to use __forceinline.
<br><br>But may be should put it back to pixman.h.<br><br>BWT: For the MS compilers, we also need to define WARN_UNUSED_RESULT.<br clear="all"><br>-- <br>Li XinGang<br>EMail: <a href="mailto:slinavlee@gmail.com">slinavlee@gmail.com
</a><br>Blog:&nbsp;&nbsp; <a href="http://avlee.cnblogs.com">avlee.cnblogs.com</a>