Revision d4ad24c1

View differences:

ffmpeg.c
20 20
#include "common.h"
21 21
#include "avformat.h"
22 22
#include "framehook.h"
23
/* usleep() */
24
#include "os_support.h"
23 25

  
24 26
#ifndef CONFIG_WIN32
25 27
#include <unistd.h>
......
33 35
#include <sys/types.h>
34 36
#include <sys/select.h>
35 37
#include <stdlib.h>
36
#define usleep(t) _sleep2((t)/1000)
37 38
#endif
38 39
#include <time.h>
39 40
#include <ctype.h>
libavformat/img.c
18 18
 */
19 19
#include <unistd.h>
20 20
#include "avformat.h"
21

  
22
#ifdef __MINGW32__
23
#  include <windows.h>
24
#  define usleep(t)    Sleep((t) / 1000)
25
#endif
26
#ifdef __BEOS__
27
#  ifndef usleep
28
#    include <OS.h>
29
#    define usleep(t)  snooze((bigtime_t)(t))
30
#  endif
31
#endif
32
#if defined(CONFIG_OS2)
33
#  include <stdlib.h>
34
#  define usleep(t)    _sleep2((t) / 1000)
35
#endif
21
#include "../os_support.h"
36 22

  
37 23
typedef struct {
38 24
    int width;

Also available in: Unified diff