Skip to content

Commit

Permalink
handle deprecated pre-defined types for 17.0 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Apr 22, 2014
1 parent 6c962c9 commit 65ebddf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

%% Compiler Options ============================================================
{erl_opts,
[debug_info, warnings_as_errors, inline]}.
[{platform_define, "^[0-9]+", namespaced_types},
debug_info,
warnings_as_errors,
inline]}.

%% EUnit =======================================================================
{eunit_opts,
Expand Down
4 changes: 4 additions & 0 deletions src/rlx_depsolver.erl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@
%%============================================================================
%% type
%%============================================================================
-ifdef(namespaced_types).
-type dep_graph() :: gb_tree:tree().
-else.
-type dep_graph() :: gb_tree().
-endif.
-opaque t() :: {?MODULE, dep_graph()}.
-type pkg() :: {pkg_name(), vsn()}.
-type pkg_name() :: binary() | atom().
Expand Down

0 comments on commit 65ebddf

Please sign in to comment.