diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2021-04-18 12:20:44 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2021-04-18 12:50:11 -0400 |
commit | 946ab2c4e9ea2d92094ef9ea0fec2a424d19b86c (patch) | |
tree | 8e37e291786115242cd18f3a176a7099f96671a4 | |
parent | 098c5a2a60781634a3fc68f4529ce80d7923e908 (diff) | |
download | couchdb-946ab2c4e9ea2d92094ef9ea0fec2a424d19b86c.tar.gz |
Swap OTP_VERSION with OTP_RELEASE macro
OTP_RELEASE is the one mentioned in:
https://erlang.org/doc/reference_manual/macros.html#predefined-macros
-rw-r--r-- | src/couch/include/couch_db.hrl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couch/include/couch_db.hrl b/src/couch/include/couch_db.hrl index 282832213..019c205ab 100644 --- a/src/couch/include/couch_db.hrl +++ b/src/couch/include/couch_db.hrl @@ -219,7 +219,7 @@ -type sec_props() :: [tuple()]. -type sec_obj() :: {sec_props()}. -%% Erlang/OTP 21 deprecates and 23 removes get_stacktrace(), so +%% Erlang/OTP 21 deprecates and 23 removes get_stacktrace(), so %% we have to monkey around until we can drop support < 21. %% h/t https://github.com/erlang/otp/pull/1783#issuecomment-386190970 @@ -234,7 +234,7 @@ % Get the stacktrace in a way that is backwards compatible % OTP_VERSION is only available in OTP 21 and later, so we don’t need % to do any other version magic here. --ifdef(OTP_VERSION). +-ifdef(OTP_RELEASE). -define(STACKTRACE(ErrorType, Error, Stack), ErrorType:Error:Stack ->). -else. |