From 71de52cb9d3659da644e4c592d7090b10fc73d2c Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 18 Nov 2014 08:48:59 -0600 Subject: fix callback r14 support --- rebar.config | 3 ++- src/rebar_resource.erl | 2 +- 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 -- cgit v1.1