lua-users home
lua-l archive

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


> > Secondly, loadlib.c now skips including (the necessary) windows.h
> > since the "defined(LUA_DL_DLL)" check always fails. Note that
> > LUA_DL_DLL is defined in luaconf.h, but this is only included in
> > loadlib.c later on through lua.h (a couple of lines below).
> 
> The old chicken-and-egg problem. Does moving that block
> (#if defined (LUA_DL_DLL)) to after the inclusion of lua.h solves
> the problem?

Actually, this does not solve our problem. We wanted to allow
redefinitions (through luaconf.h) *after* the inclusion of windows.h.
It seems that the best solution is to include windows.h in luaconf.h
itself.

-- Roberto