summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2008-11-03 22:25:09 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2008-11-03 22:25:09 +0000
commit26bfd9247054f97ba4aa03b16a44c34559ee16e4 (patch)
tree3e698b0a11618552c0e5ade4ef7626e354aa39a3 /handy.h
parente84ce9a2716d1220bc7c4b3a55e98e4a3ca18136 (diff)
downloadperl-26bfd9247054f97ba4aa03b16a44c34559ee16e4.tar.gz
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
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 99b58cc64a..f2eeadc797 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