diff options
-rw-r--r-- | libavcodec/w32thread.c | 2 | ||||
-rw-r--r-- | libavformat/os_support.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/w32thread.c b/libavcodec/w32thread.c index fbc0a581e2..5758c692ab 100644 --- a/libavcodec/w32thread.c +++ b/libavcodec/w32thread.c @@ -36,7 +36,7 @@ typedef struct ThreadContext{ }ThreadContext; -static unsigned __stdcall attribute_align_arg thread_func(void *v){ +static unsigned WINAPI attribute_align_arg thread_func(void *v){ ThreadContext *c= v; for(;;){ diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 67d586ab65..26141fe620 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -32,7 +32,7 @@ typedef int socklen_t; #endif #ifdef __MINGW32__ -__declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds); +__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds); // # include <windows.h> # define usleep(t) Sleep((t) / 1000) # include <fcntl.h> |