Mercurial > libavcodec.hg
annotate os_support.h @ 1218:358bbc952e27 libavcodec
10l (returning negative number of consumed bytes if the first startcode of a frame was split between 2 buffers)
author | michaelni |
---|---|
date | Sun, 27 Apr 2003 01:11:26 +0000 |
parents | b894732030f9 |
children | 78e8c23729f4 |
rev | line source |
---|---|
1128 | 1 #ifndef _OS_SUPPORT_H |
2 #define _OS_SUPPORT_H | |
3 | |
1131 | 4 /** |
5 * @file os_support.h | |
6 * miscellaneous OS support macros and functions. | |
1128 | 7 * |
1131 | 8 * - usleep() (Win32, BeOS, OS/2) |
9 * - floatf() (OS/2) | |
10 * - strcasecmp() (OS/2) | |
1128 | 11 */ |
12 | |
13 #ifdef __MINGW32__ | |
1179
7046e6c19a6d
#undef DATADIR before inclusion of windows.h patch by ("Sascha Sommer" <saschasommer at freenet dot de>)
michaelni
parents:
1135
diff
changeset
|
14 # undef DATADIR /* clashes with /usr/include/w32api/objidl.h */ |
1128 | 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> | |
1134 | 28 static inline int usleep(unsigned int t) { return _sleep2(t / 1000); } |
1135 | 29 static inline float floorf(float f) { return floor(f); } |
1128 | 30 static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); } |
31 #endif | |
32 | |
1191
b894732030f9
Changes for SPARC/Solaris compatibility. Now it should be possible to
romansh
parents:
1179
diff
changeset
|
33 #if defined(CONFIG_SUNOS) |
b894732030f9
Changes for SPARC/Solaris compatibility. Now it should be possible to
romansh
parents:
1179
diff
changeset
|
34 static inline float floorf(float f) { return floor(f); } |
b894732030f9
Changes for SPARC/Solaris compatibility. Now it should be possible to
romansh
parents:
1179
diff
changeset
|
35 #endif |
b894732030f9
Changes for SPARC/Solaris compatibility. Now it should be possible to
romansh
parents:
1179
diff
changeset
|
36 |
1128 | 37 #endif /* _OS_SUPPORT_H */ |