diff options
Diffstat (limited to 'plugins/MirLua/Modules/WinAPI')
-rw-r--r-- | plugins/MirLua/Modules/WinAPI/WinAPI.vcxproj | 12 | ||||
-rw-r--r-- | plugins/MirLua/Modules/WinAPI/src/stdafx.h | 2 | ||||
-rw-r--r-- | plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 4 |
3 files changed, 5 insertions, 13 deletions
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 @@ <Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
- <ProjectReference Include="..\..\..\..\libs\liblua\liblua.vcxproj">
- <Project>{bd291bf0-d804-4818-8311-de871e6bceaa}</Project>
- </ProjectReference>
</ItemGroup>
<PropertyGroup Label="Globals">
- <ProjectName>WinAPI</ProjectName>
+ <ProjectName>winapi</ProjectName>
<ProjectGuid>{045bac91-34d1-4b43-b52b-566801be7f85}</ProjectGuid>
</PropertyGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(ProjectDir)..\module.props" />
</ImportGroup>
- <ItemDefinitionGroup>
- <ClCompile>
- <AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\libs\liblua\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- </ItemDefinitionGroup>
-</Project>
\ No newline at end of file +</Project>
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 <lua.hpp>
@@ -62,7 +63,6 @@ #include <sys/stat.h>
#include <sys/utime.h>
-
#include <m_core.h>
#include <m_utils.h>
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);
}
|