diff --git a/ffmpeg.c b/ffmpeg.c index aa21dcdd2c..a8d9527178 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -20,6 +20,8 @@ #include "common.h" #include "avformat.h" #include "framehook.h" +/* usleep() */ +#include "os_support.h" #ifndef CONFIG_WIN32 #include @@ -33,7 +35,6 @@ #include #include #include -#define usleep(t) _sleep2((t)/1000) #endif #include #include diff --git a/libavformat/img.c b/libavformat/img.c index 36e501f109..980f4f981b 100644 --- a/libavformat/img.c +++ b/libavformat/img.c @@ -18,21 +18,7 @@ */ #include #include "avformat.h" - -#ifdef __MINGW32__ -# include -# define usleep(t) Sleep((t) / 1000) -#endif -#ifdef __BEOS__ -# ifndef usleep -# include -# define usleep(t) snooze((bigtime_t)(t)) -# endif -#endif -#if defined(CONFIG_OS2) -# include -# define usleep(t) _sleep2((t) / 1000) -#endif +#include "../os_support.h" typedef struct { int width;