mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
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__
|
||||
__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…
Reference in New Issue
Block a user