summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-19 21:22:30 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-19 21:22:30 +0000
commit77c9267e79d87625158fdecaa27a5ce308c517ba (patch)
tree49893fb8fd0d71274ae17291086c58321a95fd6c /xsutils.c
parent014ead4bccac5462b3a10654493980250e84b1d4 (diff)
downloadperl-77c9267e79d87625158fdecaa27a5ce308c517ba.tar.gz
Make "assertion" attribute code and test conditional
p4raw-id: //depot/perl@23827
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xsutils.c b/xsutils.c
index 2dc0d7ab1a..c09a376b98 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -71,6 +71,7 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
switch (SvTYPE(sv)) {
case SVt_PVCV:
switch ((int)len) {
+#ifdef CVf_ASSERTION
case 9:
if (memEQ(name, "assertion", 9)) {
if (negated)
@@ -80,6 +81,7 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
continue;
}
break;
+#endif
case 6:
switch (name[3]) {
case 'l':