diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-17 14:46:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-17 18:36:08 +0900 |
commit | f08fcd0e803bb07912794b8a2366973946d2af2f (patch) | |
tree | 274c9247376b2d53755f023019625d64350cdc27 /dln.c | |
parent | 85cee293570e10f11170d54c7fae7ac681a52193 (diff) |
Fix possible use of undefined macros on very old macOS [ci skip]
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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> |