Hi flac-dev,

When we try to build libFLAC v1.3.1 using the Android NDK, we currently are
getting an error in a couple files:

../../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)
>

I filed a bug for it on the sourceforge bug tracker:
https://sourceforge.net/p/flac/bugs/457/

This is fixed (in all NDK versions) by including limits.h.  I've attached a
simple patch that fixes the Android NDK build.

Please let me know if theres any other process involved in getting this
patch upstreamed.

Thanks,
~Steve

Attachment: flac_android.diff
Description: Binary data

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to