Re: build failure libmpcodecs/mp_image.c:
Helle Vaanzinn <[email protected]> Wed, 11 Oct 2023 13:09:35 -0000
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <[email protected]> |
@Rinaldi Here's a patch I tried to send to the list earlier, but that got fat-fingered somehow... --- a/libmpcodecs/mp_image.c +++ b/libmpcodecs/mp_image.c @@ -17,6 +17,7 @@ */ #include "config.h" +#include <limits.h> #include <stdio.h> #include <stdlib.h> Helle On Wed, 11 Oct 2023 07:43:48 -0500 "Rinaldi J. Montessi" <[email protected]> wrote: >Today's svn: > >libmpcodecs/mp_image.c: In function 'mp_image_alloc_planes': >libmpcodecs/mp_image.c:39:39: error: 'INT_MAX' undeclared (first use >in this function) > 39 | if ((unsigned int)mpi->height + 2 > INT_MAX || > | ^~~~~~~ >libmpcodecs/mp_image.c:34:1: note: 'INT_MAX' is defined in header >'<limits.h>'; did you forget to '#include <limits.h>'? > 33 | #include "mp_msg.h" > +++ |+#include <limits.h> > 34 | >libmpcodecs/mp_image.c:39:39: note: each undeclared identifier is >reported only once for each function it appears in > 39 | if ((unsigned int)mpi->height + 2 > INT_MAX || > | ^~~~~~~ >make: *** [Makefile:730: libmpcodecs/mp_image.o] Error 1 > >Rinaldi