diff options
Diffstat (limited to 'generic/tclThreadJoin.c')
-rw-r--r-- | generic/tclThreadJoin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclThreadJoin.c b/generic/tclThreadJoin.c index 5c70a62..3a905b5 100644 --- a/generic/tclThreadJoin.c +++ b/generic/tclThreadJoin.c @@ -14,7 +14,7 @@ #include "tclInt.h" -#ifdef _WIN32 +#ifdef WIN32 /* * The information about each joinable thread is remembered in a structure as @@ -52,7 +52,7 @@ typedef struct JoinableThread { TCL_DECLARE_MUTEX(joinMutex) -static JoinableThread *firstThreadPtr; +static JoinableThread* firstThreadPtr; /* *---------------------------------------------------------------------- @@ -201,7 +201,7 @@ TclJoinThread( Tcl_ConditionFinalize(&threadPtr->cond); Tcl_MutexFinalize(&threadPtr->threadMutex); - ckfree(threadPtr); + ckfree((char *) threadPtr); return TCL_OK; } @@ -230,7 +230,7 @@ TclRememberJoinableThread( { JoinableThread *threadPtr; - threadPtr = ckalloc(sizeof(JoinableThread)); + threadPtr = (JoinableThread *) ckalloc(sizeof(JoinableThread)); threadPtr->id = id; threadPtr->done = 0; threadPtr->waitedUpon = 0; @@ -305,7 +305,7 @@ TclSignalExitThread( Tcl_MutexUnlock(&threadPtr->threadMutex); } -#endif /* _WIN32 */ +#endif /* WIN32 */ /* * Local Variables: |