diff options
| author | Christophe Romain <christophe.romain@process-one.net> | 2015-02-11 12:08:16 +0100 |
|---|---|---|
| committer | Christophe Romain <christophe.romain@process-one.net> | 2015-02-23 09:58:00 +0100 |
| commit | 0c0947a24166bc2660fcc6dbc8d5a49d9a3a99a5 (patch) | |
| tree | 1cfcc291ff1e30e0e3c1a359b0d994728f536f55 /src/jlib.erl | |
| parent | Update links (diff) | |
Add compatibility macros for deprecated types (thanks to Alexey)
Diffstat (limited to 'src/jlib.erl')
| -rw-r--r-- | src/jlib.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jlib.erl b/src/jlib.erl index 2c0f30b3f..76886a7dc 100644 --- a/src/jlib.erl +++ b/src/jlib.erl @@ -57,6 +57,7 @@ %% TODO: Remove once XEP-0091 is Obsolete %% TODO: Remove once XEP-0091 is Obsolete +-include("ejabberd.hrl"). -include("jlib.hrl"). -export_type([jid/0]). @@ -972,7 +973,7 @@ i2l(L, N) when is_binary(L) -> _ -> i2l(<<$0, L/binary>>, N) end. --spec queue_drop_while(fun((term()) -> boolean()), queue()) -> queue(). +-spec queue_drop_while(fun((term()) -> boolean()), ?TQUEUE) -> ?TQUEUE. queue_drop_while(F, Q) -> case queue:peek(Q) of |
