summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-17 14:46:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-17 18:36:08 +0900
commitf08fcd0e803bb07912794b8a2366973946d2af2f (patch)
tree274c9247376b2d53755f023019625d64350cdc27 /dln.c
parent85cee293570e10f11170d54c7fae7ac681a52193 (diff)
Fix possible use of undefined macros on very old macOS [ci skip]
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dln.c b/dln.c
index b14ba63c44..bf87251bb6 100644
--- a/dln.c
+++ b/dln.c
@@ -298,15 +298,15 @@ COMPILER_WARNING_POP
/* assume others than old Mac OS X have no problem */
# define dln_disable_dlclose() false
-#elif MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11
-/* targeting newer versions only */
-# define dln_disable_dlclose() false
-
#elif !defined(MAC_OS_X_VERSION_10_11) || \
(MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11)
/* targeting older versions only */
# define dln_disable_dlclose() true
+#elif MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11
+/* targeting newer versions only */
+# define dln_disable_dlclose() false
+
#else
/* support both versions, and check at runtime */
# include <sys/sysctl.h>