lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 1) if you are going to use windows.h it should be the first header, this 
> is because the windows headers modify macros used by the RTL, I have 
> read MS documentation on this (but cant remember where).
> This means that loadlib.c *needs* an in the module #ifdef to include 
> windows.h as the first header. I vaguely remember specific problems with 
> modules that include <io.h>, so in writing a Lua library for windows the 
> header order is impoortant.
> i.e.
> <windows.h>
> <lua.h>

But in 5.1.4 windows.h is included after stdlib.h, string.h, lua.h, etc.
And it seems to work fine...