From 3d82c35caf561a55c2c1c726643d113e4f281e00 Mon Sep 17 00:00:00 2001 From: Ulf Wiger Date: Fri, 4 Jun 2021 15:57:35 +0200 Subject: [PATCH] fix conditional macros in edoc_compat --- src/edoc_compat.hrl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/edoc_compat.hrl b/src/edoc_compat.hrl index 6335b8a..92cd1d0 100644 --- a/src/edoc_compat.hrl +++ b/src/edoc_compat.hrl @@ -6,11 +6,15 @@ -define(NO_APP, no_app). -endif. +-ifdef(OTP_RELEASE). -if(?OTP_RELEASE >= 24). -define(context, doclet_context). -else. %% Pre OTP 24 EDoc -define(context, context). --endif. %% NO_APP +-endif. %% OTP_RELEASE >= 24 +-else. +-define(context, context). +-endif. %% OTP_RELEASE -endif. %% __EDOC_COMPAT_HRL__