diff options
author | Benoit Daloze <eregontp@gmail.com> | 2021-04-29 15:02:19 +0200 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-05-25 19:55:01 +0900 |
commit | 01b7cace08ef83b91a524c751b239d0bfb3292af (patch) | |
tree | 52ea385a33e5e21b826e7634baf77a48e0e7ae08 /ext/openssl | |
parent | 0ac1a4e11faf36fed9a4a06ffdead5f5a34d9d44 (diff) | |
download | ruby-openssl-01b7cace08ef83b91a524c751b239d0bfb3292af.tar.gz |
Fix -Wundef warnings in core extensions
* See [Feature #17752]
(cherry picked from commit ruby/ruby@59a92a84c8145c3dffd9f2a0e570dbc61211c86c)
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/ossl_pkey_ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c index 1c97e9aa..9b461cb6 100644 --- a/ext/openssl/ossl_pkey_ec.c +++ b/ext/openssl/ossl_pkey_ec.c @@ -1407,7 +1407,7 @@ static VALUE ossl_ec_point_mul(int argc, VALUE *argv, VALUE self) if (EC_POINT_mul(group, point_result, bn_g, point_self, bn, ossl_bn_ctx) != 1) ossl_raise(eEC_POINT, NULL); } else { -#if OPENSSL_VERSION_MAJOR+0 >= 3 || defined(LIBRESSL_VERSION_NUMBER) +#if (defined(OPENSSL_VERSION_MAJOR) && OPENSSL_VERSION_MAJOR >= 3) || defined(LIBRESSL_VERSION_NUMBER) rb_raise(rb_eNotImpError, "calling #mul with arrays is not" \ "supported by this OpenSSL version"); #else |