File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ dln_sym(void *handle, const char *symbol)
426
426
}
427
427
#endif
428
428
429
- #if RUBY_DLN_CHECK_ABI && defined(USE_DLN_DLOPEN )
429
+ #if defined( RUBY_DLN_CHECK_ABI ) && defined(USE_DLN_DLOPEN )
430
430
static bool
431
431
abi_check_enabled_p (void )
432
432
{
@@ -441,7 +441,7 @@ dln_load(const char *file)
441
441
#if defined(_WIN32 ) || defined(USE_DLN_DLOPEN )
442
442
void * handle = dln_open (file );
443
443
444
- #if RUBY_DLN_CHECK_ABI
444
+ #ifdef RUBY_DLN_CHECK_ABI
445
445
unsigned long long (* abi_version_fct )(void ) = (unsigned long long (* )(void ))dln_sym (handle , "ruby_abi_version" );
446
446
unsigned long long binary_abi_version = (* abi_version_fct )();
447
447
if (binary_abi_version != ruby_abi_version () && abi_check_enabled_p ()) {
Original file line number Diff line number Diff line change 27
27
/* Windows does not support weak symbols so ruby_abi_version will not exist
28
28
* in the shared library. */
29
29
#if defined(HAVE_FUNC_WEAK ) && !defined(_WIN32 ) && !defined(__MINGW32__ )
30
- # define RUBY_DLN_CHECK_ABI 1
31
- #else
32
- # define RUBY_DLN_CHECK_ABI 0
30
+ # define RUBY_DLN_CHECK_ABI
33
31
#endif
34
32
35
- #if RUBY_DLN_CHECK_ABI
33
+ #ifdef RUBY_DLN_CHECK_ABI
36
34
37
35
RUBY_FUNC_EXPORTED unsigned long long __attribute__((weak ))
38
36
ruby_abi_version (void )
You can’t perform that action at this time.
0 commit comments