summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'create.c')
-rw-r--r--create.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/create.c b/create.c
index f342ca4..dfaada6 100644
--- a/create.c
+++ b/create.c
@@ -26,6 +26,7 @@
#include "pthread.h"
#include "implement.h"
+#include <process.h>
int
pthread_create (pthread_t * tid,
@@ -141,7 +142,7 @@ pthread_create (pthread_t * tid,
_beginthreadex (
(void *) NULL, /* No security info */
(unsigned) stackSize, /* default stack size */
- (unsigned (PT_STDCALL *) (void *)) ptw32_threadStart,
+ ptw32_threadStart,
parms,
(unsigned) CREATE_SUSPENDED,
(unsigned *) &(thread->thread));
@@ -161,7 +162,7 @@ pthread_create (pthread_t * tid,
thread->threadH = threadH = (HANDLE)
_beginthread (
- (void (PT_STDCALL *) (void *)) ptw32_hreadStart,
+ ptw32_threadStart,
(unsigned) stackSize, /* default stack size */
parms);