summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2022-03-01 12:27:41 +0000
committerYuta Saito <kateinoigakukun@gmail.com>2022-03-01 23:33:48 +0900
commit33dadb2c8aeaaa03f90e4b0f2613031633aa8751 (patch)
treeeef855dbfe06f6192c4dfb11b04119a06d150053 /dln.c
parenteebc24218af66befb215f6c713e4f68f9c4db715 (diff)
dln.c: suppress unused function 'abi_check_enabled_p' warning for wasi
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5613
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index a38ff7341d..767bae9479 100644
--- a/dln.c
+++ b/dln.c
@@ -426,7 +426,7 @@ dln_sym(void *handle, const char *symbol)
}
#endif
-#if RUBY_DLN_CHECK_ABI
+#if RUBY_DLN_CHECK_ABI && (defined(_WIN32) || defined(USE_DLN_DLOPEN))
static bool
abi_check_enabled_p(void)
{