From: Marcus Holland-Moritz Date: Mon, 3 Nov 2008 22:25:09 +0000 (+0000) Subject: The breakage caused by #34653 (sh|c)ould have been detected X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=26bfd9247054f97ba4aa03b16a44c34559ee16e4;p=p5sagit%2Fp5-mst-13.2.git The breakage caused by #34653 (sh|c)ould have been detected by the compiler. So further improve the STR_WITH_LEN() macro. p4raw-id: //depot/perl@34712 --- diff --git a/handy.h b/handy.h index 99b58cc..f2eeadc 100644 --- a/handy.h +++ b/handy.h @@ -301,7 +301,7 @@ and omits the hash parameter. */ /* concatenating with "" ensures that only literal strings are accepted as argument */ -#define STR_WITH_LEN(s) (s ""), (sizeof(s)-1) +#define STR_WITH_LEN(s) ("" s ""), (sizeof(s)-1) /* note that STR_WITH_LEN() can't be used as argument to macros or functions that * under some configurations might be macros, which means that it requires the full