From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tristan Savatier To: pthreads-win32@sourceware.cygnus.com Subject: minor bug fix for WinCE in dll.c Date: Wed, 12 Jul 2000 14:04:00 -0000 Message-id: <396CDE9B.2031222C@mpegtv.com> References: X-SW-Source: 2000/msg00035.html Here is a minor bug that I had to fix in order for pthread-win32 to work on WinCE. It has to do with the fact that WinCE uses UNICODE (16-bit chars). It would not hurt to include this fix the the main tree... In dll.c: Replace: GetProcAddress(_pthread_h_kernel32, (LPCSTR) "TryEnterCriticalSection"); by GetProcAddress(_pthread_h_kernel32, (const TCHAR *)TEXT("TryEnterCriticalSection")); -t