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:
9b6e096
)
Avoid using #ifdef inside a function call that may itself actually be a macro.
author
Nicholas Clark
<nick@ccl4.org>
Thu, 21 Oct 2010 16:43:31 +0000
(17:43 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Thu, 21 Oct 2010 16:43:31 +0000
(17:43 +0100)
A tweak to
20439bc77dfeec46
. Hopefully this fixes the build on Win32.
hv.c
patch
|
blob
|
history
diff --git
a/hv.c
b/hv.c
index
d5dacab
..
08867cf
100644
(file)
--- a/
hv.c
+++ b/
hv.c
@@
-2988,12
+2988,16
@@
Perl_refcounted_he_new_pvn(pTHX_ struct refcounted_he *parent,
if (!hash)
PERL_HASH(hash, keypv, keylen);
+#ifdef USE_ITHREADS
he = (struct refcounted_he*)
PerlMemShared_malloc(sizeof(struct refcounted_he) - 1
-#ifdef USE_ITHREADS
+ keylen
-#endif
+ key_offset);
+#else
+ he = (struct refcounted_he*)
+ PerlMemShared_malloc(sizeof(struct refcounted_he) - 1
+ + key_offset);
+#endif
he->refcounted_he_next = parent;