<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 "flac-1.2.1/include/share/alloc.h" and made the following change:<br>
<br>Starting at line #36 I changed:<br><br>#ifndef SIZE_MAX<br># ifndef SIZE_T_MAX<br># ifdef _MSC_VER<br># define SIZE_T_MAX UINT_MAX<br># else<br># error<br># 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># ifdef _MSC_VER<br># define SIZE_T_MAX UINT_MAX<br># elif defined(__MINGW_H)<br># define SIZE_T_MAX UINT_MAX<br># else<br># error<br># endif<br># endif<br>
# define SIZE_MAX SIZE_T_MAX<br>#endif<br><br>Hope I found the right place to submit this :~)<br> --Bill<br></div>