I am putting forth an extremely short patch, which has an overall effect of +1 lines to have zones work natively in MSVC.<br><br>as x264 already requires MSVC 2005 (VC8) all ready for variadic macro support, this will not have an effect on current compatibility,<br>
as the proposed patch also starts working with 2005.<br><br>the patch defines strtok_r as the msvc equivalent of strtok_s, which has the same exact method signature outside of the names.<br>it also fixes a memory allocation in the zone parser which causes a seg fault on non malloc.h systems, which is also required for msvc.<br>
<br><br>and as a small note to BugMaster on his win x64 workings:<br>./configure --host=x86_64-pc-mingw32 --disable-avis-input --disable-asm<br>can generate a working win x64 version of x264 w/ mingw-w64<br>(I've been using the mingw-w64-bin_i686-mingw_DATE.zip versions)<br>
<br>use the following you want to configure a compileable version without --disable-asm to work on the win x64 asm<br><a href="http://kemuri9.net/dev/x264/patches/x264_config_win_x64_asm.diff">http://kemuri9.net/dev/x264/patches/x264_config_win_x64_asm.diff</a><br>