summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-03-08 18:59:45 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-03-08 18:59:45 +0000
commita06ba2a18d64d5aa7574e03d65ab3ef209e915e5 (patch)
treeea3a0f8a7702b546dbd15ebc51260035acd9c875 /libavformat/os_support.h
parent4a24ab64b16b273f6d24e7fbd84603a77fb30074 (diff)
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. Originally committed as revision 12377 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 6e6950050a..285f039470 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -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))