<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>Hi I am doing some upgrades of drivers right now. I realized that I sometimes need to be able to<div>compile on pre R15 so I came up with the following scheme in drv_x.c:</div><div><br></div><div><div>#include "erl_driver.h"</div><div><br></div><div>// Hack to handle R15 driver used with pre R15 driver</div><div>#if ERL_DRV_EXTENDED_MAJOR_VERSION == 1</div><div>typedef int  ErlDrvSizeT;</div><div>typedef int  ErlDrvSSizeT;</div><div>#endif</div><div><br></div><div>Then I re-type x_ctl ...</div><div><br></div><div>I think this will work, at least for me ? Or will there be a 1.x that breaks this ?</div><div><br></div><div>/Tony</div><div><br></div><div><br></div><div><br></div><div><div>On 25 jan 2012, at 07:17, Alexey Romanov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thank you! I'll try to fix it this or next month, when I have time.<br><br>Yours, Alexey Romanov<br><br><br><br>On Fri, Dec 16, 2011 at 5:46 PM, Sverker Eriksson<br><<a href="mailto:sverker@erix.ericsson.se">sverker@erix.ericsson.se</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">You must rebuild it with Erlang R15B to work.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Not just rebuild:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.erlang.org/doc/man/erl_driver.html#rewrites_for_64_bits">http://www.erlang.org/doc/man/erl_driver.html#rewrites_for_64_bits</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/Sverker, Erlang/OTP<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">erlang-questions mailing list<br></blockquote><blockquote type="cite"><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></blockquote><blockquote type="cite"><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote>_______________________________________________<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></div></blockquote></div><br><div apple-content-edited="true">
<div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>