<br><br><div><span class="gmail_quote">2007/4/17, Behdad Esfahbod <<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>>:</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>> since 1.4.4, the __inline specifier of all the inline fuctions<br>> replaced with inline. But for the msvc compiler we need to using<br>> the __inline specifier for the c functions.
<br>><br>> This is a good way to fix this problem:<br>><br>> Add below code to pixman.h:<br>><br>> #if defined(_MSC_VER)<br>> #define WARN_UNUSED_RESULT<br>> #define inline __inline<br>> #endif<br>
<br><br>Thanks. I asked Pavlov and he thought inline should work... 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? 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>
"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><br></blockquote></div><br>I'm not sure it'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: <a href="http://avlee.cnblogs.com">avlee.cnblogs.com</a>