diff options
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | mutex.c | 2 | 
2 files changed, 10 insertions, 1 deletions
| @@ -1,3 +1,12 @@ +2000-09-13  Ross Johnson  <rpj@setup1.ise.canberra.edu.au> + +	* mutex.c (pthread_mutex_init): Call +	TryEnterCriticalSection through the pointer +	rather than directly so that the dll can load +	on Windows versions that can't resolve the +	function, eg. Windows 95 +	- "Jef Gearhart" <jgearhart@tpssys.com> +  2000-09-08  Ross Johnson  <rpj@special.ise.canberra.edu.au>  	* GNUmakefile(_WIN32_WINNT=0x400): Define in CFLAGS; @@ -153,7 +153,7 @@ pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)  	   * Check that it works ok - since InitializeCriticalSection doesn't  	   * return success or failure.  	   */ -	  if (TryEnterCriticalSection(&mx->cs)) +	  if ((*ptw32_try_enter_critical_section)(&mx->cs))  	    {  	      LeaveCriticalSection(&mx->cs);  	    } | 
