summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2014-11-18 09:23:54 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2014-11-18 09:23:54 -0600
commit6616b3584965d71b7ca040b84965363a004054f2 (patch)
tree3b53379c331a1bf1c28123dd21f6c69ff20dc488
parent4874a21b49b700c0c3b4e1514b83c39bdf05d8cb (diff)
parent71de52cb9d3659da644e4c592d7090b10fc73d2c (diff)
Merge pull request #11 from tsloughter/r14
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