VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/libavformat/os_support.h@ 7812

Last change on this file since 7812 was 5776, checked in by vboxsync, 17 years ago

ffmpeg: exported to OSE

File size: 731 bytes
Line 
1#ifndef _OS_SUPPORT_H
2#define _OS_SUPPORT_H
3
4/**
5 * @file os_support.h
6 * miscellaneous OS support macros and functions.
7 *
8 * - usleep() (Win32, BeOS, OS/2)
9 * - floatf() (OS/2)
10 * - strcasecmp() (OS/2)
11 */
12
13#ifdef __MINGW32__
14__declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
15// # include <windows.h>
16# define usleep(t) Sleep((t) / 1000)
17#endif
18
19#ifdef __BEOS__
20# ifndef usleep
21# include <OS.h>
22# define usleep(t) snooze((bigtime_t)(t))
23# endif
24#endif
25
26#if defined(CONFIG_OS2)
27#include <stdlib.h>
28static inline int usleep(unsigned int t) { return _sleep2(t / 1000); }
29static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); }
30#endif
31
32#endif /* _OS_SUPPORT_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette