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
This commit is contained in:
parent
4a24ab64b1
commit
a06ba2a18d
@ -28,8 +28,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
|
# include <windows.h>
|
||||||
// # include <windows.h>
|
|
||||||
# define usleep(t) Sleep((t) / 1000)
|
# define usleep(t) Sleep((t) / 1000)
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
# define lseek(f,p,w) _lseeki64((f), (p), (w))
|
# define lseek(f,p,w) _lseeki64((f), (p), (w))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user