mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-18 17:24:31 +01:00
Erlang/OTP 27 finally exports re:mp/0
This commit is contained in:
parent
803f95050f
commit
4d625e5574
@ -56,15 +56,15 @@
|
|||||||
-include_lib("xmpp/include/xmpp.hrl").
|
-include_lib("xmpp/include/xmpp.hrl").
|
||||||
-include_lib("kernel/include/file.hrl").
|
-include_lib("kernel/include/file.hrl").
|
||||||
|
|
||||||
|
-ifdef(OTP_BELOW_27).
|
||||||
%% Copied from erlang/otp/lib/stdlib/src/re.erl
|
%% Copied from erlang/otp/lib/stdlib/src/re.erl
|
||||||
-type re_mp() :: {re_pattern, _, _, _, _}.
|
-type re_mp() :: {re_pattern, _, _, _, _}.
|
||||||
-export_type([re_mp/0]).
|
|
||||||
|
|
||||||
-ifdef(OTP_BELOW_27).
|
|
||||||
-type json_value() :: jiffy:json_value().
|
-type json_value() :: jiffy:json_value().
|
||||||
-else.
|
-else.
|
||||||
|
-type re_mp() :: re:mp().
|
||||||
-type json_value() :: json:encode_value().
|
-type json_value() :: json:encode_value().
|
||||||
-endif.
|
-endif.
|
||||||
|
-export_type([re_mp/0]).
|
||||||
-export_type([json_value/0]).
|
-export_type([json_value/0]).
|
||||||
|
|
||||||
-type distance_cache() :: #{{string(), string()} => non_neg_integer()}.
|
-type distance_cache() :: #{{string(), string()} => non_neg_integer()}.
|
||||||
|
Loading…
Reference in New Issue
Block a user