Browse Source

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
tags/v0.5
Ramiro Polla 17 years ago
parent
commit
a06ba2a18d
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/os_support.h

+ 1
- 2
libavformat/os_support.h View File

@@ -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))


Loading…
Cancel
Save