~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavformat/os_support.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2004-08-29 10:53:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040829105342-qgmnry37eadfkoxx
Tags: upstream-1.1.3
ImportĀ upstreamĀ versionĀ 1.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#  undef DATADIR /* clashes with /usr/include/w32api/objidl.h */
 
15
__declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
 
16
// #  include <windows.h>
 
17
#  define usleep(t)    Sleep((t) / 1000)
 
18
#endif
 
19
 
 
20
#ifdef __BEOS__
 
21
#  ifndef usleep
 
22
#    include <OS.h>
 
23
#    define usleep(t)  snooze((bigtime_t)(t))
 
24
#  endif
 
25
#endif
 
26
 
 
27
#if defined(CONFIG_OS2)
 
28
#include <stdlib.h>
 
29
static inline int usleep(unsigned int t) { return _sleep2(t / 1000); }
 
30
static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); }
 
31
#endif
 
32
 
 
33
#endif /* _OS_SUPPORT_H */