Files
0ad/build/premake/premake5/binmodules/luasocket/main.c
T
Itms 2c167153e9 Upgrade premake5 from alpha12 to alpha13, refs #3729.
Fixes an issue on macOS Mojave that was patched in fa1c281e79.

The list of changes can be found under
build/premake/premake5/CHANGES.txt.

This was SVN commit r22021.
2019-01-04 21:20:45 +00:00

16 lines
287 B
C

#include <luashim.h>
int luaopen_socket_core(lua_State *L);
#ifdef _WIN32
__declspec(dllexport) int luaopen_luasocket(lua_State *L)
#else
int luaopen_luasocket(lua_State *L)
#endif
{
shimInitialize(L);
luaL_requiref(L, "socket", luaopen_socket_core, 1);
lua_pop(L, 1);
return 0;
}