When trying to build libFLAC using the Android NDK, we get the following error:
../../third_party/flac/src/libFLAC/md5.c:498:25: error: use of undeclared identifier 'SIZE_MAX'
if ((size_t)channels > SIZE_MAX / (size_t)bytes_per_sample)
This is fixed by including limits.h, using the attached patch file.
Sorry, this should be for milestone 1.3.1
New patch, putting the include behind an #ifdef ANDROID.
Please try git HEAD at https://git.xiph.org/flac.git
Thanks, git HEAD does indeed work!