mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-19 07:19:50 +02:00
LuaRocks workaround
This commit is contained in:
13
src/ssl.c
13
src/ssl.c
@ -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
|
||||
|
Reference in New Issue
Block a user