From 3ac10dfb4e4a20b23c96151865846477d4843b19 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 8 Jan 2016 11:48:55 +0000 Subject: MirLua: winapi cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16060 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/Modules/WinAPI/WinAPI.vcxproj | 12 ++---------- plugins/MirLua/Modules/WinAPI/src/stdafx.h | 2 +- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 4 ++-- 3 files changed, 5 insertions(+), 13 deletions(-) (limited to 'plugins/MirLua/Modules/WinAPI') diff --git a/plugins/MirLua/Modules/WinAPI/WinAPI.vcxproj b/plugins/MirLua/Modules/WinAPI/WinAPI.vcxproj index 86a81c3522..b26fd1f049 100644 --- a/plugins/MirLua/Modules/WinAPI/WinAPI.vcxproj +++ b/plugins/MirLua/Modules/WinAPI/WinAPI.vcxproj @@ -17,20 +17,12 @@ Release x64 - - {bd291bf0-d804-4818-8311-de871e6bceaa} - - WinAPI + winapi {045bac91-34d1-4b43-b52b-566801be7f85} - - - $(ProjectDir)..\..\..\..\libs\liblua\include;%(AdditionalIncludeDirectories) - - - \ No newline at end of file + diff --git a/plugins/MirLua/Modules/WinAPI/src/stdafx.h b/plugins/MirLua/Modules/WinAPI/src/stdafx.h index 9b4664bd1f..f2207236e2 100644 --- a/plugins/MirLua/Modules/WinAPI/src/stdafx.h +++ b/plugins/MirLua/Modules/WinAPI/src/stdafx.h @@ -43,6 +43,7 @@ * NOTES * ***/ + #define LUA_WINAPI_LIB extern "C" int __declspec(dllexport) #include @@ -62,7 +63,6 @@ #include #include - #include #include diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index dbf564d210..c3aa9f4d0e 100644 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -2142,14 +2142,14 @@ static luaL_Reg winApi[] = { NULL, NULL } }; -LUA_WINAPI_LIB luaopen_WinAPI(lua_State *L) +LUA_WINAPI_LIB luaopen_winapi(lua_State *L) { luaL_newlib(L, winApi); for (size_t i = 0; consts[i].name != NULL; i++) { lua_pushstring(L, consts[i].name); - lua_pushnumber(L, consts[i].value); + lua_pushnumber(L, consts[i].value); lua_settable(L, -3); } -- cgit v1.2.3