Skip to content

Commit

Permalink
Fix -Wundef warnings in core extensions
Browse files Browse the repository at this point in the history
* See [Feature #17752]

(cherry picked from commit ruby/ruby@59a92a8)
  • Loading branch information
eregon authored and rhenium committed May 25, 2021
1 parent 0ac1a4e commit 01b7cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/openssl/ossl_pkey_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01b7cac

Please sign in to comment.