LuaRocks workaround

This commit is contained in:
Bruno Silvestre
2017-03-31 14:40:09 -03:00
parent 9f6d623ccb
commit 6b82fa6104
2 changed files with 13 additions and 15 deletions

View File

@ -854,3 +854,16 @@ LSEC_API int luaopen_ssl_core(lua_State *L)
return 1;
}
//------------------------------------------------------------------------------
#if defined(_MSC_VER)
/* Empty implementation to allow building with LuaRocks and MS compilers */
LSEC_API int luaopen_ssl(lua_State *L) {
lua_pushstring(L, "you should not call this function");
lua_error(L);
return 0;
}
#endif