From c3e3bf8baaa8d164110d62dc93bbb2780ab39e2c Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 6 Dec 1998 14:53:20 +0000 Subject: Mon Dec 7 09:44:40 1998 Ross Johnson * dll.c (PthreadsEntryPoint): Cast return value of GetProcAddress to resolve compile warning from MSVC. --- ChangeLog | 5 +++++ dll.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 60bc7d4..15aa039 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 7 09:44:40 1998 Ross Johnson + + * dll.c (PthreadsEntryPoint): Cast return value of GetProcAddress + to resolve compile warning from MSVC. + Sun Dec 6 21:54:35 1998 Ross Johnson * buildlib.bat: Fix args to CL when building the .DLL diff --git a/dll.c b/dll.c index a9fa81f..bb3d7ef 100644 --- a/dll.c +++ b/dll.c @@ -63,7 +63,7 @@ BOOL WINAPI PthreadsEntryPoint(HINSTANCE dllHandle, /* Load KERNEL32 and try to get address of TryEnterCriticalSection */ _pthread_h_kernel32 = LoadLibrary(TEXT("KERNEL32.DLL")); - _pthread_try_enter_critical_section = GetProcAddress(_pthread_h_kernel32, "TryEnterCriticalSection"); + _pthread_try_enter_critical_section = (void *) GetProcAddress(_pthread_h_kernel32, "TryEnterCriticalSection"); break; case DLL_PROCESS_DETACH: -- cgit v1.2.3