<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Stefan -</div><div><br></div><div>I typically use macros with rebar's platform_define feature for such situations.</div><div><br></div><div>Here is an example for R14 and old inets behavior (<a href="https://github.com/ubf/ubf-jsonrpc/blob/master/rebar.config#L6">https://github.com/ubf/ubf-jsonrpc/blob/master/rebar.config#L6</a>).</div><div><br></div><div>This method is simple but works only at compile-time.</div><div><br></div><div>Regards,</div><div><br></div><div>Joe N.</div><br><div><div>On 2013/07/02, at 8:13, "Stefan Jahn" <<a href="mailto:stefan@gruft.de">stefan@gruft.de</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Erlang'ers,<br><br>sometimes it would be nice to enable version-dependend code such as<br>needed here:<br><br>  %% R16B: use new ssh behaviour<br>  %-behaviour(ssh_daemon_channel).<br><br>  %% R15: use old ssh behaviour<br>  -behaviour(ssh_channel).<br><br><br>Is there anything suitable in Erlang?  Or is it unwanted because of<br>strict versioning requirements of modules and applications?<br><br>Thank you in advance,<br>  Stefan.<br><br><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br></body></html>