changeset 86:66845d76f6a0 libavformat

Cleaner support for usleep()
author mmu_man
date Wed, 12 Mar 2003 17:14:28 +0000
parents 25062c9b1f86
children b43e201588dc
files img.c
diffstat 1 files changed, 1 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/img.c	Wed Mar 12 15:16:19 2003 +0000
+++ b/img.c	Wed Mar 12 17:14:28 2003 +0000
@@ -18,21 +18,7 @@
  */
 #include <unistd.h>
 #include "avformat.h"
-
-#ifdef __MINGW32__
-#  include <windows.h>
-#  define usleep(t)    Sleep((t) / 1000)
-#endif
-#ifdef __BEOS__
-#  ifndef usleep
-#    include <OS.h>
-#    define usleep(t)  snooze((bigtime_t)(t))
-#  endif
-#endif
-#if defined(CONFIG_OS2)
-#  include <stdlib.h>
-#  define usleep(t)    _sleep2((t) / 1000)
-#endif
+#include "../os_support.h"
 
 typedef struct {
     int width;