Great.<br><br>I need to correct my statement, the check for _MSC_VER &lt;= 1600<br>was the culprit, like this case:<br><br>#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__<br>#include &lt;sys/types.h&gt; /* for off_t */<br>
#if _MSC_VER &lt;= 1600 || defined __BORLANDC__ /* @@@ [2G limit] */<br>#ifndef fseeko<br>#define fseeko fseek<br>#ifndef fseeko<br>#define fseeko fseek<br>#endif<br>#endif<br><br>Cheers,<br>Cristian.<br><br><div class="gmail_quote">
On Wed, Mar 6, 2013 at 6:24 PM, Ben Allison <span dir="ltr">&lt;<a href="mailto:benski@winamp.com" target="_blank">benski@winamp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Those checks account for compiler changes/improvements introduced in<br>
Visual Studio 2010 that are not present in Visual Studio 2008.<br>
<br>
I will grab Visual Studio 2012 off of MSDN and make sure everything is OK<br>
there.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Ben<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt; Hi Ben,<br>
&gt;<br>
&gt; Can you please remove the _MSC_VER &gt;= 1600 check?<br>
&gt;<br>
&gt; _MSC_VER 1600 is set for Visual Studio 2010, which means<br>
&gt; that Visual Studio 2012 will get a lot of errors because _MSC_VER<br>
&gt; is defined as 1700.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Cristian.<br>
&gt;<br>
&gt; On Wed, Mar 6, 2013 at 5:53 PM, Ben Allison &lt;<a href="mailto:benski@winamp.com">benski@winamp.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Thanks, Erik.<br>
&gt;&gt;<br>
&gt;&gt; This is the delta that should fix everything up.<br>
&gt;&gt; I hope that #include &quot;share/compat.h&quot; is acceptable from the<br>
&gt;&gt; test_streams<br>
&gt;&gt; binary.  If not, you can probably change it to FLAC/ordinals.h instead<br>
&gt;&gt;<br>
&gt;&gt; Also don&#39;t forget to commit my earlier VERSION=&quot;1.3.0&quot; patch.  You can<br>
&gt;&gt; add<br>
&gt;&gt; the &quot;pre1&quot; in a normal text editor without risk.  I didn&#39;t include those<br>
&gt;&gt; changes in the big patch you committed already.<br>
&gt;&gt; -Ben<br>
&gt;&gt;<br>
&gt;&gt; &gt; Ben Allison wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Erik, et al.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; This fixes the entire library and does it more cleanly.  It puts most<br>
&gt;&gt; of<br>
&gt;&gt; &gt;&gt; the guts into share/compat.h<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks Ben.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I applied a slightly tweaked version of the patch. The patch had to be<br>
&gt;&gt; &gt; tweaked because it broke the Linux build :-). Specifically, the file<br>
&gt;&gt; &gt; include/FLAC/ordinals.h is a public header file and should not include<br>
&gt;&gt; &gt; the project internal header &quot;share/compat.h&quot;. I also moved some of the<br>
&gt;&gt; &gt; #ifdef stuff to &quot;share/compat.h&quot;.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What is in git now may not build on windows but should be really,<br>
&gt;&gt; really<br>
&gt;&gt; &gt; close. I&#39;d appreciate it if you could test it and report the error<br>
&gt;&gt; &gt; messages. It might take a couple of iterations but we should get it<br>
&gt;&gt; &gt; working for all the platforms.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt; Erik<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; ----------------------------------------------------------------------<br>
&gt;&gt; &gt; Erik de Castro Lopo<br>
&gt;&gt; &gt; <a href="http://www.mega-nerd.com/" target="_blank">http://www.mega-nerd.com/</a><br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; flac-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:flac-dev@xiph.org">flac-dev@xiph.org</a><br>
&gt;&gt; &gt; <a href="http://lists.xiph.org/mailman/listinfo/flac-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/flac-dev</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; flac-dev mailing list<br>
&gt;&gt; <a href="mailto:flac-dev@xiph.org">flac-dev@xiph.org</a><br>
&gt;&gt; <a href="http://lists.xiph.org/mailman/listinfo/flac-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/flac-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>