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