aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/stdlib.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-01-23 16:33:45 +0000
committerGitHub <noreply@github.com>2023-01-23 16:33:45 +0000
commitf08051c2e61f63b2088a42d641393253b8ca1ca1 (patch)
tree04b2d5c875e6df790ce416a2e8363126101460e9 /src/nvim/lua/stdlib.c
parent3b7548504344d72b0228e1bd29a7f28df813a3bd (diff)
downloadrneovim-f08051c2e61f63b2088a42d641393253b8ca1ca1.tar.gz
rneovim-f08051c2e61f63b2088a42d641393253b8ca1ca1.tar.bz2
rneovim-f08051c2e61f63b2088a42d641393253b8ca1ca1.zip
feat!: make iconv a non-optional dep
Diffstat (limited to 'src/nvim/lua/stdlib.c')
-rw-r--r--src/nvim/lua/stdlib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/lua/stdlib.c b/src/nvim/lua/stdlib.c
index 8b74418753..6ebca6d97e 100644
--- a/src/nvim/lua/stdlib.c
+++ b/src/nvim/lua/stdlib.c
@@ -482,8 +482,6 @@ static int nlua_stricmp(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
return 1;
}
-#if defined(HAVE_ICONV)
-
/// Convert string from one encoding to another
static int nlua_iconv(lua_State *lstate)
{
@@ -526,8 +524,6 @@ static int nlua_iconv(lua_State *lstate)
return 1;
}
-#endif
-
void nlua_state_add_stdlib(lua_State *const lstate, bool is_thread)
{
if (!is_thread) {
@@ -574,12 +570,10 @@ void nlua_state_add_stdlib(lua_State *const lstate, bool is_thread)
luaopen_spell(lstate);
lua_setfield(lstate, -2, "spell");
-#if defined(HAVE_ICONV)
// vim.iconv
// depends on p_ambw, p_emoji
lua_pushcfunction(lstate, &nlua_iconv);
lua_setfield(lstate, -2, "iconv");
-#endif
}
// vim.mpack