diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-03-08 18:59:45 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-03-08 18:59:45 +0000 |
commit | a06ba2a18d64d5aa7574e03d65ab3ef209e915e5 (patch) | |
tree | ea3a0f8a7702b546dbd15ebc51260035acd9c875 | |
parent | 4a24ab64b16b273f6d24e7fbd84603a77fb30074 (diff) | |
download | ffmpeg-a06ba2a18d64d5aa7574e03d65ab3ef209e915e5.tar.gz |
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
-rw-r--r-- | libavformat/os_support.h | 3 |
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)) |