From 5ad9bc631048467dba8964ab840a71990aabeae3 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 6 Apr 1999 22:02:54 +0000 Subject: Wed Apr 7 14:09:52 1999 Ross Johnson * errno.c (_REENTRANT || _MT): Invert #if condition. * pthread.h (_errno): Conditionally include prototype. --- pthread.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index 8995558..8ce4d5e 100644 --- a/pthread.h +++ b/pthread.h @@ -862,7 +862,13 @@ int pthreadCancelableWait (HANDLE waitHandle); int pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout); /* - * Thread-Safe C Runtime Library Mappings + * Thread-Safe C Runtime Library Mappings. + */ +#if ! defined( _REENTRANT ) && ! defined( _MT ) +int * _errno( void ); +#endif + +/* * WIN32 C runtime library had been made thread-safe * without affecting the user interface. Provide * mappings from the UNIX thread-safe versions to @@ -870,6 +876,7 @@ int pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout); * Only provide function mappings for functions that * actually exist on WIN32. */ + #if !defined(__MINGW32__) #define strtok_r( _s, _sep, _lasts ) \ ( *(_lasts) = strtok( (_s), (_sep) ) ) -- cgit v1.2.3