[libbluray-devel] Fix log string format with mingw

hpi1 git at videolan.org
Thu May 7 11:50:38 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu May  7 12:45:40 2015 +0300| [e0b0a54420a4e512f217ce257a60a86216b90870] | committer: hpi1

Fix log string format with mingw

(format '%d' expects argument of type 'int', but argument 7 has type 'int64_t')

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e0b0a54420a4e512f217ce257a60a86216b90870
---

 src/libbluray/decoders/graphics_controller.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index cffd8e6..dabde1c 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -38,6 +38,11 @@
 #include "../register.h"
 #include "../keys.h"
 
+#ifdef _WIN32
+/* mingw: PRId64 seems to expands to %d without stdio.h ... */
+#include <stdio.h>
+#endif
+
 #include <inttypes.h>
 #include <string.h>
 



More information about the libbluray-devel mailing list