Add #include guard in Thread.xs so it will build even under
authorGurusamy Sarathy <gsar@cpan.org>
Sat, 15 Nov 1997 02:58:09 +0000 (02:58 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Sat, 15 Nov 1997 02:58:09 +0000 (02:58 +0000)
no USE_THREADS (for win32).  This was missed because of edit
w/o checkout perforce kludge.

p4raw-id: //depot/win32/perl@256

ext/Thread/Thread.xs

index 9e3c439..db1b5d7 100644 (file)
@@ -581,8 +581,10 @@ void
 data(classname = "Thread::Specific")
        char *  classname
     PPCODE:
+#ifdef USE_THREADS
        if (AvFILL(thr->specific) == -1) {
            GV *gv = gv_fetchpv("Thread::Specific::FIELDS", TRUE, SVt_PVHV);
            av_store(thr->specific, 0, newRV((SV*)GvHV(gv)));
        }
        XPUSHs(sv_bless(newRV((SV*)thr->specific),gv_stashpv(classname,TRUE)));
+#endif