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