diff --git a/src/win32/thread.c b/src/win32/thread.c index bfb349b971..9037d72d3f 100644 --- a/src/win32/thread.c +++ b/src/win32/thread.c @@ -30,6 +30,7 @@ #endif #define _DECL_DLLMAIN +#include #include #include #include @@ -706,7 +707,7 @@ void vlc_threads_setup(libvlc_int_t *vlc) #define LOOKUP(s) (((s##_) = (void *)GetProcAddress(h, #s)) != NULL) -BOOL WINAPI DllMain (HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved) +int __stdcall DllMain (void *hinstDll, unsigned fdwReason, void *lpvReserved) { (void) hinstDll; (void) lpvReserved;