summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2021-04-18 12:20:44 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2021-04-18 12:50:11 -0400
commit946ab2c4e9ea2d92094ef9ea0fec2a424d19b86c (patch)
tree8e37e291786115242cd18f3a176a7099f96671a4
parent098c5a2a60781634a3fc68f4529ce80d7923e908 (diff)
downloadcouchdb-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.hrl4
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.