changeset 3126:d39f51044b17 libavformat

Include windows.h instead of trying to redeclare Sleep os_support.h used to be included in all lavf files, and including windows.h here caused a significant slowdown.
author ramiro
date Sat, 08 Mar 2008 18:59:45 +0000
parents bc818669cdbd
children ca53e89f3448
files os_support.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.h	Sat Mar 08 17:43:53 2008 +0000
+++ b/os_support.h	Sat Mar 08 18:59:45 2008 +0000
@@ -28,8 +28,7 @@
  */
 
 #ifdef __MINGW32__
-__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
-// #  include <windows.h>
+#  include <windows.h>
 #  define usleep(t)    Sleep((t) / 1000)
 #  include <fcntl.h>
 #  define lseek(f,p,w) _lseeki64((f), (p), (w))