[Scummvm-devel] LUA on WinCE and PS2

Max Horn max at quendi.de
Tue May 17 11:18:38 CEST 2011


Am 17.05.2011 um 10:48 schrieb Ismail Khatib:

> I have checked the current compilation problem of the WinCE branch
> yesterday, and again I have a question about how to handle this.
> Compilation fails with "error: 'tmpfile' was not declared in this scope"
> because tmpfile() is not available on WinCE. Should this problem be
> adressed in the engine, or in the port's backend?

In the engine! And I will add tmpfile to common/forbidden.h

> I'm asking this again in this special case because one could say
> "tmpfile()" _is_ (if its not WinCE) normally portable, because it should
> be defined in (c)stdio(.h) and it's also (AFAIK) part of ISO C/POSIX.

While it is part of ISO C90, it is nevertheless not really portable, as you just proved ;). There are more ScummVM ports that don't have this API.

> 
> Hm. Now when I think about this a bit longer, this could also be said
> about "errno" and friends. So what to do? Is this again a case for the
> engine maintainer?

Yes, it is.


Bye,
Max



More information about the Scummvm-devel mailing list