mirror of
https://github.com/lunarmodules/lua-iconv.git
synced 2025-06-22 20:24:36 +02:00
fix: Enable compiling with MSVC (#4)
This commit is contained in:
parent
9e865ff345
commit
11545d0533
@ -116,6 +116,7 @@ static int Liconv(lua_State *L)
|
||||
char *outbuf = outbufs;
|
||||
size_t obleft = CONV_BUF_SIZE;
|
||||
size_t ret = -1;
|
||||
luaL_Buffer b;
|
||||
|
||||
if (cd == NULL) {
|
||||
lua_pushstring(L, "");
|
||||
@ -123,7 +124,6 @@ static int Liconv(lua_State *L)
|
||||
return 2;
|
||||
}
|
||||
|
||||
luaL_Buffer b;
|
||||
luaL_buffinit(L, &b);
|
||||
|
||||
do {
|
||||
|
Loading…
x
Reference in New Issue
Block a user