#define PERL_SCRIPT_MODE "r"
#endif
++#ifndef PERL_SCRIPT_MODE
++#define PERL_SCRIPT_MODE "r"
++#endif
++
/*
* nice_chunk and nice_chunk size need to be set
* and queried under the protection of sv_mutex
START_EXTERN_C
#if defined(PERLDLL) && (!defined(__BORLANDC__) || defined(_DLL))
--extern __declspec(thread) struct thread *Perl_current_thread;
++extern __declspec(thread) struct perl_thread *Perl_current_thread;
#define SET_THR(t) (Perl_current_thread = t)
#define THR Perl_current_thread
#else
#endif
void Perl_alloc_thread_key _((void));
- int Perl_thread_create _((struct thread *thr, thread_func_t *fn));
- void Perl_set_thread_self _((struct thread *thr));
- struct thread *Perl_getTHR _((void));
- void Perl_setTHR _((struct thread *t));
+ int Perl_thread_create _((struct perl_thread *thr, thread_func_t *fn));
+ void Perl_set_thread_self _((struct perl_thread *thr));
+ struct perl_thread *Perl_getTHR _((void));
+ void Perl_setTHR _((struct perl_thread *t));
+
END_EXTERN_C
#define INIT_THREADS NOOP