On Wednesday, August 28, 2013 05:50:05 AM Alexey Melnichuk wrote: > Some time we need also Service Pack version. > And i think if we can pass such data to compiler (via -D) > then developer could write simple header(compile_config.h) which set > appropriate macro values.
The service pack is part of the full version number. For instance, Windows 7 is 6.1.7600 without and 6.1.7601 with. I've warmed to adding a WINVER LuaRocks variable, but it's still up to the rockspec to make it a compiler macro. That can't give you the SP version though. But even Microsoft suggests to use GetProcAddress in such cases. (i.e. SetDllDirectory) I've started working on this at https://github.com/whoopdedo/luarocks/tree/platform-version-overrides -- tom <[email protected]> ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
