Mercurial > libavformat.hg
comparison os_support.h @ 2242:2ec2d6dca26e libavformat
Remove OS/2 support
author | ramiro |
---|---|
date | Tue, 10 Jul 2007 21:52:04 +0000 |
parents | d2d62fa7e7c9 |
children | fb72d949bae3 |
comparison
equal
deleted
inserted
replaced
2241:914aeda381e6 | 2242:2ec2d6dca26e |
---|---|
25 /** | 25 /** |
26 * @file os_support.h | 26 * @file os_support.h |
27 * miscellaneous OS support macros and functions. | 27 * miscellaneous OS support macros and functions. |
28 * | 28 * |
29 * - socklen_t typedef (BeOS, Innotek libc) | 29 * - socklen_t typedef (BeOS, Innotek libc) |
30 * - usleep() (Win32, BeOS, OS/2) | 30 * - usleep() (Win32, BeOS) |
31 * - lseek() (Win32) | 31 * - lseek() (Win32) |
32 * - floatf() (OS/2) | |
33 * - strcasecmp() (OS/2) | |
34 * - closesocket() | 32 * - closesocket() |
35 * - poll() (BeOS, MinGW) | 33 * - poll() (BeOS, MinGW) |
36 */ | 34 */ |
37 | 35 |
38 #if defined(__BEOS__) || defined(__INNOTEK_LIBC__) | 36 #if defined(__BEOS__) || defined(__INNOTEK_LIBC__) |
66 # warning SA_RESTART not implemented; ffserver might misbehave. | 64 # warning SA_RESTART not implemented; ffserver might misbehave. |
67 # define SA_RESTART 0 | 65 # define SA_RESTART 0 |
68 # endif | 66 # endif |
69 #endif | 67 #endif |
70 | 68 |
71 #if defined(CONFIG_OS2) | |
72 #include <stdlib.h> | |
73 static inline int usleep(unsigned int t) { return _sleep2(t / 1000); } | |
74 static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); } | |
75 #endif | |
76 | |
77 /* most of the time closing a socket is just closing an fd */ | 69 /* most of the time closing a socket is just closing an fd */ |
78 #if HAVE_CLOSESOCKET != 1 | 70 #if HAVE_CLOSESOCKET != 1 |
79 #define closesocket close | 71 #define closesocket close |
80 #endif | 72 #endif |
81 | 73 |