summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-18 08:48:59 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-18 09:15:24 -0600
commit71de52cb9d3659da644e4c592d7090b10fc73d2c (patch)
tree7a35f3af544a3994b46c4cee97217c62a6dd6a9c
parent8635beffc1c9efc7e26f3cf1597b859a8a72bd3b (diff)
fix callback r14 support
-rw-r--r--rebar.config3
-rw-r--r--src/rebar_resource.erl2
2 files changed, 3 insertions, 2 deletions
diff --git a/rebar.config b/rebar.config
index 7e8f832..692ee7d 100644
--- a/rebar.config
+++ b/rebar.config
@@ -11,7 +11,8 @@
{escript_name, rebar3}.
{erl_opts,
- [{platform_define, "^[0-9]+", namespaced_types},
+ [{platform_define, "R14", no_callback_support},
+ {platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^R1[4|5]", deprecated_crypto},
debug_info,
warnings_as_errors]}.
diff --git a/src/rebar_resource.erl b/src/rebar_resource.erl
index 04b8d73..5babff7 100644
--- a/src/rebar_resource.erl
+++ b/src/rebar_resource.erl
@@ -14,7 +14,7 @@
-type location() :: string().
-type ref() :: any().
--ifdef(have_callback_support).
+-ifdef(no_callback_support).
%% In the case where R14 or lower is being used to compile the system
%% we need to export a behaviour info