comparison os_support.h @ 3969:d3db5ee44053 libavformat

MinGW runtime 3.15 has a wrapper for usleep().
author ramiro
date Thu, 02 Oct 2008 17:43:27 +0000
parents 1b6245500d8c
children 4d5d9ac28e21
comparison
equal deleted inserted replaced
3968:bf1b4748cd2e 3969:d3db5ee44053
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 29
30 #ifdef __MINGW32__ 30 #ifdef __MINGW32__
31 # define WIN32_LEAN_AND_MEAN
32 # include <windows.h>
33 # define usleep(t) Sleep((t) / 1000)
34 # include <fcntl.h> 31 # include <fcntl.h>
35 # define lseek(f,p,w) _lseeki64((f), (p), (w)) 32 # define lseek(f,p,w) _lseeki64((f), (p), (w))
36 #endif 33 #endif
37 34
38 #ifdef __BEOS__ 35 #ifdef __BEOS__