From e803f1a2eee01145c0297fa94e8c5608865ef5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 12 Mar 2003 17:15:42 +0000 Subject: [PATCH] Cleaner support for usleep() (with the correct header :) Originally committed as revision 1669 to svn://svn.ffmpeg.org/ffmpeg/trunk --- os_support.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 os_support.h diff --git a/os_support.h b/os_support.h new file mode 100644 index 0000000000..38713f2051 --- /dev/null +++ b/os_support.h @@ -0,0 +1,28 @@ +#ifndef _OS_SUPPORT_H +#define _OS_SUPPORT_H + +/* + * miscellaneous OS support macros + * + * For now: + * usleep() + */ + +#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 + +#endif /* _OS_SUPPORT_H */