summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>1999-04-06 22:02:54 +0000
committerrpj <rpj>1999-04-06 22:02:54 +0000
commit5ad9bc631048467dba8964ab840a71990aabeae3 (patch)
treee1d0a9bb098ab9d46ed460b0343a9792e38355aa /pthread.h
parent5d920cbde2800a019934b7a3748c7afc070a3505 (diff)
Wed Apr 7 14:09:52 1999 Ross Johnson <rpj@swan.canberra.edu.au>snap-1999-04-07
* errno.c (_REENTRANT || _MT): Invert #if condition. * pthread.h (_errno): Conditionally include prototype.
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h9
1 files changed, 8 insertions, 1 deletions
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) ) )