<div class="gmail_quote">On Tue, May 17, 2011 at 6:48 PM, Ismail Khatib <span dir="ltr"><<a href="mailto:ikhatib@gmail.com">ikhatib@gmail.com</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have checked the current compilation problem of the WinCE branch<br>
yesterday, and again I have a question about how to handle this.<br>
Compilation fails with "error: 'tmpfile' was not declared in this scope"<br>
because tmpfile() is not available on WinCE. Should this problem be<br>
adressed in the engine, or in the port's backend?<br>
I'm asking this again in this special case because one could say<br>
"tmpfile()" _is_ (if its not WinCE) normally portable, because it should<br>
be defined in (c)stdio(.h) and it's also (AFAIK) part of ISO C/POSIX.<br>
<br>
Hm. Now when I think about this a bit longer, this could also be said<br>
about "errno" and friends. So what to do? Is this again a case for the<br>
engine maintainer?<br>
<br>
Regards,<br>
Cerial</blockquote><br>As far as I'm aware, the game doesn't actually use that function - it's just part of the LUA library. So we've got two options - either provide a dummy prototype so it'll compile okay, or directly modify the LUA code to comment out the call. I would lean towards the former, so as to keep the LUA code as pristine as possible. Although changing it in the code means it would be fixed for all other systems as well.<br>
<br>Paul.<br></div>