log 2 compat

Need to support math:log2 in early versions of OTP (for Riak)
This commit is contained in:
Martin Sumner 2018-10-24 15:42:21 +01:00
parent 6d62803567
commit f4c65597ea
3 changed files with 41 additions and 1 deletions

View file

@ -1,8 +1,10 @@
{erl_opts, [warnings_as_errors,
{platform_define, "^2[0-1]{1}", fsm_deprecated},
{platform_define, "^1[7-8]{1}", old_rand},
{platform_define, "^17", no_log2},
{platform_define, "^R", no_sync},
{platform_define, "^R", old_rand},
{platform_define, "^R", no_log2},
{platform_define, "^R", slow_test}]}.
{xref_checks, [undefined_function_calls,undefined_functions]}.