sorry forgot
[libav.git] / libavcodec / os_support.h
1 #ifndef _OS_SUPPORT_H
2 #define _OS_SUPPORT_H
3
4 /*
5 * miscellaneous OS support macros/function
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 static inline usleep(unsigned int t) { return _sleep2((t) / 1000); }
26 static inline float floatf(float x) { return floor(n); }
27 static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); }
28 #endif
29
30 #endif /* _OS_SUPPORT_H */