annotate os_support.h @ 1134:27d225bd7176 libavcodec

* fixing cut&paste bug
author kabi
date Fri, 14 Mar 2003 07:24:25 +0000
parents 2575d16b62d7
children 8e29f644a6be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1128
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
1 #ifndef _OS_SUPPORT_H
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
2 #define _OS_SUPPORT_H
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
3
1131
2575d16b62d7 /me should really learn doxygen :)
mmu_man
parents: 1128
diff changeset
4 /**
2575d16b62d7 /me should really learn doxygen :)
mmu_man
parents: 1128
diff changeset
5 * @file os_support.h
2575d16b62d7 /me should really learn doxygen :)
mmu_man
parents: 1128
diff changeset
6 * miscellaneous OS support macros and functions.
1128
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
7 *
1131
2575d16b62d7 /me should really learn doxygen :)
mmu_man
parents: 1128
diff changeset
8 * - usleep() (Win32, BeOS, OS/2)
2575d16b62d7 /me should really learn doxygen :)
mmu_man
parents: 1128
diff changeset
9 * - floatf() (OS/2)
2575d16b62d7 /me should really learn doxygen :)
mmu_man
parents: 1128
diff changeset
10 * - strcasecmp() (OS/2)
1128
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
11 */
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
12
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
13 #ifdef __MINGW32__
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
14 # include <windows.h>
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
15 # define usleep(t) Sleep((t) / 1000)
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
16 #endif
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
17
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
18 #ifdef __BEOS__
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
19 # ifndef usleep
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
20 # include <OS.h>
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
21 # define usleep(t) snooze((bigtime_t)(t))
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
22 # endif
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
23 #endif
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
24
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
25 #if defined(CONFIG_OS2)
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
26 #include <stdlib.h>
1134
27d225bd7176 * fixing cut&paste bug
kabi
parents: 1131
diff changeset
27 static inline int usleep(unsigned int t) { return _sleep2(t / 1000); }
27d225bd7176 * fixing cut&paste bug
kabi
parents: 1131
diff changeset
28 static inline float floatf(float f) { return floor(f); }
1128
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
29 static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); }
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
30 #endif
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
31
300961b1ef4f * moved os_support.h into libavcodec
kabi
parents:
diff changeset
32 #endif /* _OS_SUPPORT_H */