[libbluray-devel] Fix bdj_test when building for WIN32

hpi1 git at videolan.org
Wed Sep 18 11:32:55 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Sep 18 12:31:41 2013 +0300| [7ee32e8777a8440d243727cd492ee4d3e30b80d2] | committer: hpi1

Fix bdj_test when building for WIN32

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

 src/examples/bdj_test.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/examples/bdj_test.c b/src/examples/bdj_test.c
index 769aac7..f13370a 100644
--- a/src/examples/bdj_test.c
+++ b/src/examples/bdj_test.c
@@ -32,6 +32,11 @@
 
 #include "libbluray/bluray.h"
 
+#if defined(_WIN32)
+#include <windows.h>
+#define sleep(x) Sleep(x)
+#endif
+
 static void _usage(void) {
     printf("Usage: [path to disc] [starting object]\n");
 }



More information about the libbluray-devel mailing list