sorry forgot
[libav.git] / os_support.h
1 #ifndef _OS_SUPPORT_H
2 #define _OS_SUPPORT_H
3
4 /*
5 * miscellaneous OS support macros
6 *
7 * For now:
8 * usleep()
9 */
10
11 #ifdef __MINGW32__
12 # include <windows.h>
13 # define usleep(t) Sleep((t) / 1000)
14 #endif
15
16 #ifdef __BEOS__
17 # ifndef usleep
18 # include <OS.h>
19 # define usleep(t) snooze((bigtime_t)(t))
20 # endif
21 #endif
22
23 #if defined(CONFIG_OS2)
24 # include <stdlib.h>
25 # define usleep(t) _sleep2((t) / 1000)
26 #endif
27
28 #endif /* _OS_SUPPORT_H */