25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-16 17:15:55 +01:00

Erlang/OTP 27 finally exports re:mp/0

This commit is contained in:
Badlop 2024-11-29 20:35:28 +01:00
parent 803f95050f
commit 4d625e5574

View File

@ -56,15 +56,15 @@
-include_lib("xmpp/include/xmpp.hrl").
-include_lib("kernel/include/file.hrl").
-ifdef(OTP_BELOW_27).
%% Copied from erlang/otp/lib/stdlib/src/re.erl
-type re_mp() :: {re_pattern, _, _, _, _}.
-export_type([re_mp/0]).
-ifdef(OTP_BELOW_27).
-type json_value() :: jiffy:json_value().
-else.
-type re_mp() :: re:mp().
-type json_value() :: json:encode_value().
-endif.
-export_type([re_mp/0]).
-export_type([json_value/0]).
-type distance_cache() :: #{{string(), string()} => non_neg_integer()}.