From: Nicholas Clark Date: Wed, 12 Apr 2006 23:17:18 +0000 (+0000) Subject: D'oh! Don't try to do #ifdefs inside "functions" that are actually X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6cef672beecb6487b28e1c85741db8c90f90f456;p=p5sagit%2Fp5-mst-13.2.git D'oh! Don't try to do #ifdefs inside "functions" that are actually macros. p4raw-id: //depot/perl@27781 --- diff --git a/hv.c b/hv.c index f0f9c39..93853a9 100644 --- a/hv.c +++ b/hv.c @@ -2716,11 +2716,14 @@ Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, } flags = value_type; - he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 #ifdef USE_ITHREADS + he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 + key_len -#endif + key_offset); +#else + he = PerlMemShared_malloc(sizeof(struct refcounted_he) - 1 + + key_offset); +#endif he->refcounted_he_next = parent;