]> git.sesse.net Git - vlc/commitdiff
Fix include for WIN32 version.
authorPhilippe Morin <phmo95@videolan.org>
Sun, 17 Dec 2006 16:09:00 +0000 (16:09 +0000)
committerPhilippe Morin <phmo95@videolan.org>
Sun, 17 Dec 2006 16:09:00 +0000 (16:09 +0000)
bindings/java/src/core-jni.cc

index 4266f7ff1b6f014e9f8989331dd9492eadc9b138..ac60bd08d979a4247eb80a0dcde4aed46269c713 100644 (file)
 #include <stdio.h>  // for printf
 #include <stdlib.h> // for calloc
 #include <string.h> // for strcmp
+#ifdef WIN32
+#undef usleep
+#define usleep(var) Sleep(var/1000)
+#else
 #include <unistd.h> // for usleep
+#endif
 
 /* JVLC internal imports, generated by gcjh */
 #include "../includes/JVLC.h"