From d4ad24c17ddf296aadfe34404caa461244babb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 12 Mar 2003 17:14:28 +0000 Subject: [PATCH] Cleaner support for usleep() Originally committed as revision 1668 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 3 ++- libavformat/img.c | 16 +--------------- 2 files changed, 3 insertions(+), 16 deletions(-) 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;