Menu

#457 use of undeclared identifier 'SIZE_MAX'

1.3.0
closed-fixed
nobody
None
5
2017-05-05
2017-04-24
Steve Fung
No

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.

1 Attachments

Discussion

  • Steve Fung

    Steve Fung - 2017-04-24

    Sorry, this should be for milestone 1.3.1

     
  • Steve Fung

    Steve Fung - 2017-05-02

    New patch, putting the include behind an #ifdef ANDROID.

     
  • Erik

    Erik - 2017-05-03

    Please try git HEAD at https://git.xiph.org/flac.git

     
  • Steve Fung

    Steve Fung - 2017-05-04

    Thanks, git HEAD does indeed work!

     
  • Erik

    Erik - 2017-05-05
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB