projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d63e3e
)
Add #include guard in Thread.xs so it will build even under
author
Gurusamy Sarathy
<gsar@cpan.org>
Sat, 15 Nov 1997 02:58:09 +0000
(
02:58
+0000)
committer
Gurusamy 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
patch
|
blob
|
history
diff --git
a/ext/Thread/Thread.xs
b/ext/Thread/Thread.xs
index
9e3c439
..
db1b5d7
100644
(file)
--- a/
ext/Thread/Thread.xs
+++ b/
ext/Thread/Thread.xs
@@
-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