in rebar.config
{erl_opts, [
...
{platform_define, "^R", otp_before_17}
]}.
in code:
-ifdef(otp_before_17).
-type myqueue() :: queue().
-type mydict() :: dict().
-else.
-type myqueue() :: queue:queue().
-type mydict() :: dict:dict().
-endif.
Written with StackEdit.