[PATCH] Fix build failure in sub/font_load.c

Lauri Kasanen <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
Hi,

The latest trunk, r37696, fails to build:

sub/font_load.c: In function 'load_raw':
sub/font_load.c:48:34: error: 'uint64_t' undeclared (first use in this
function) if (raw->w > INT_MAX / 4 || (uint64_t)raw->w * raw->h >
INT_MAX / 4)

I added #include <stdint.h> to that file to fix it. Patch attached.

- Lauri

_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
stdint.patch (text/plain, 309 B)
Index: sub/font_load.c
===================================================================
--- sub/font_load.c	(revision 37696)
+++ sub/font_load.c	(working copy)
@@ -19,6 +19,7 @@
 #include "config.h"
 
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <strings.h>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.