mirror of
https://github.com/lunarmodules/lua-iconv.git
synced 2025-06-22 20:24:36 +02:00
parent
5452834c16
commit
3c729ec869
@ -39,6 +39,12 @@
|
|||||||
#define LIB_VERSION LIB_NAME " 7"
|
#define LIB_VERSION LIB_NAME " 7"
|
||||||
#define ICONV_TYPENAME "iconv_t"
|
#define ICONV_TYPENAME "iconv_t"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define LUAEXPORT __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LUAEXPORT __attribute__((visibility("default")))
|
||||||
|
#endif
|
||||||
|
|
||||||
#if LUA_VERSION_NUM < 501
|
#if LUA_VERSION_NUM < 501
|
||||||
#error "Unsupported Lua version. You must use Lua >= 5.1"
|
#error "Unsupported Lua version. You must use Lua >= 5.1"
|
||||||
#endif
|
#endif
|
||||||
@ -229,7 +235,7 @@ static const luaL_Reg iconv_funcs[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int luaopen_iconv(lua_State *L)
|
LUAEXPORT int luaopen_iconv(lua_State *L)
|
||||||
{
|
{
|
||||||
luaL_newlib(L, iconv_funcs);
|
luaL_newlib(L, iconv_funcs);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user