diff options
author | Tom Stuart <[email protected]> | 2021-03-25 17:42:59 +0000 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-03-31 18:05:08 +0900 |
commit | 8b2f2a707de54ad24d787ff0bce67ed8c68cdded (patch) | |
tree | 559f337f68c880a5d748507748edeba4f7548622 /ext/openssl/ossl_bn.c | |
parent | 5ab2625243ddb0aca03febcf61b792ebab4eb4e8 (diff) |
[ruby/openssl] Use #ifdef consistently for HAVE_RB_EXT_RACTOR_SAFE
We previously used a mix of both `#if` and `#ifdef`, but the latter is
more reliable because it will still work if the macro is undefined.
https://github.com/ruby/openssl/commit/e4a622e67e
Diffstat (limited to 'ext/openssl/ossl_bn.c')
-rw-r--r-- | ext/openssl/ossl_bn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c index bec37299f7..1d43e4572b 100644 --- a/ext/openssl/ossl_bn.c +++ b/ext/openssl/ossl_bn.c @@ -10,7 +10,7 @@ /* modified by Michal Rokos <[email protected]> */ #include "ossl.h" -#if HAVE_RB_EXT_RACTOR_SAFE +#ifdef HAVE_RB_EXT_RACTOR_SAFE #include <ruby/ractor.h> #endif @@ -155,7 +155,7 @@ ossl_bn_value_ptr(volatile VALUE *ptr) * Private */ -#if HAVE_RB_EXT_RACTOR_SAFE +#ifdef HAVE_RB_EXT_RACTOR_SAFE void ossl_bn_ctx_free(void *ptr) { |