#ifdef WIN32
THREAD_RET_TYPE Perl_thread_run(LPVOID arg);
#else
-void Perl_thread_run(void * arg);
+void* Perl_thread_run(void * arg);
#endif
void Perl_thread_destruct(ithread* thread);
#ifdef WIN32
THREAD_RET_TYPE Perl_thread_run(LPVOID arg) {
#else
-void Perl_thread_run(void * arg) {
+void* Perl_thread_run(void * arg) {
#endif
ithread* thread = (ithread*) arg;
SV* thread_tid_ptr;
}
#ifdef WIN32
return (DWORD)0;
+#else
+ return 0;
#endif
}
(LPVOID)thread, 0, &thread->thr);
#else
- pthread_create( &thread->thr, NULL, (void *) Perl_thread_run, thread);
+ pthread_create( &thread->thr, NULL, Perl_thread_run, thread);
#endif
MUTEX_UNLOCK(&create_mutex);
PL_perl_destruct_level = 2;
threads = Perl_sharedsv_new(aTHX);
SHAREDSvEDIT(threads);
- ((HV*) SHAREDSvGET(threads)) = newHV();
+ SHAREDSvGET(threads) = (SV *)newHV();
SHAREDSvRELEASE(threads);
{