<div dir="ltr">Hello, I was trying to compile Flac on MinGW/Msys but got an error stating SIZE_T_MAX is undefined.<br>To fix this error I edited the file &quot;flac-1.2.1/include/share/alloc.h&quot; and made the following change:<br>
<br>Starting at line #36 I changed:<br><br>#ifndef SIZE_MAX<br># ifndef SIZE_T_MAX<br>#&nbsp; ifdef _MSC_VER<br>#&nbsp;&nbsp; define SIZE_T_MAX UINT_MAX<br>#&nbsp; else<br>#&nbsp;&nbsp; error<br>#&nbsp; endif<br># endif<br># define SIZE_MAX SIZE_T_MAX<br>#endif<br>
<br>To:<br><br>#ifndef SIZE_MAX<br># ifndef SIZE_T_MAX<br>#&nbsp; ifdef _MSC_VER<br>#&nbsp;&nbsp; define SIZE_T_MAX UINT_MAX<br>#&nbsp; elif defined(__MINGW_H)<br>#&nbsp;&nbsp; define SIZE_T_MAX UINT_MAX<br>#&nbsp; else<br>#&nbsp;&nbsp; error<br>#&nbsp; endif<br># endif<br>
# define SIZE_MAX SIZE_T_MAX<br>#endif<br><br>Hope I found the right place to submit this :~)<br>&nbsp; --Bill<br></div>