Skip to content

Commit

Permalink
Merge pull request massemanet#38 from ten0s/r16_fix
Browse files Browse the repository at this point in the history
Fix R16 build error
  • Loading branch information
massemanet committed Jul 14, 2015
2 parents 493a5b0 + 2234c20 commit 5328ed6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rebar.config.script
Expand Up @@ -6,12 +6,12 @@ KeyAppend = fun(Tag,[],E,_) ->[{Tag,[E]}];
(Tag,[H|T],E,G) ->[H|G(Tag,T,E,G)]
end,
code:ensure_loaded(crypto),
case erlang:function_exported(crypto,block_encrypt,3) of
true -> KeyAppend(erl_opts,CONFIG,{d,'CRYPTO_R16'},KeyAppend);
false -> CONFIG
end.
CONFIG2 = case erlang:function_exported(crypto,block_encrypt,3) of
true -> KeyAppend(erl_opts,CONFIG,{d,'CRYPTO_R16'},KeyAppend);
false -> CONFIG
end.

case erlang:is_builtin(erlang,timestamp,0) of
true -> KeyAppend(erl_opts,CONFIG,{d,'HAS_TIMESTAMP'},KeyAppend);
false -> CONFIG
true -> KeyAppend(erl_opts,CONFIG2,{d,'HAS_TIMESTAMP'},KeyAppend);
false -> CONFIG2
end.

0 comments on commit 5328ed6

Please sign in to comment.