2 * various utilities for ffmpeg system
3 * copyright (c) 2000, 2001, 2002 Fabrice Bellard
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 * miscellaneous OS support macros and functions.
27 * - usleep() (Win32, BeOS, OS/2)
29 * - strcasecmp() (OS/2)
33 __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
34 // # include <windows.h>
35 # define usleep(t) Sleep((t) / 1000)
41 # define usleep(t) snooze((bigtime_t)(t))
45 #if defined(CONFIG_OS2)
47 static inline int usleep(unsigned int t) { return _sleep2(t / 1000); }
48 static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); }
51 #endif /* _OS_SUPPORT_H */