diff options
-rw-r--r-- | rebar.config | 3 | ||||
-rw-r--r-- | 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 |