mirror of
https://github.com/valitydev/msgpack-erlang.git
synced 2024-11-06 08:45:19 +00:00
17 lines
441 B
Plaintext
17 lines
441 B
Plaintext
case erlang:system_info(otp_release) of
|
|
|
|
%% Rxx, before R16
|
|
[$R|_] ->
|
|
HashDefine = [{d,without_map}],
|
|
case lists:keysearch(erl_opts, 1, CONFIG) of
|
|
{value, {erl_opts, Opts}} ->
|
|
lists:keyreplace(erl_opts,1,CONFIG,{erl_opts,Opts++HashDefine});
|
|
false ->
|
|
CONFIG ++ [{erl_opts, HashDefine}]
|
|
end;
|
|
|
|
%% "17", our future with map
|
|
_ ->
|
|
CONFIG
|
|
end.
|