85ab1f
From c38b7faa8bb565553bf125da7244f013822735ff Mon Sep 17 00:00:00 2001
85ab1f
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
85ab1f
Date: Thu, 11 May 2017 13:44:14 +0200
85ab1f
Subject: [PATCH] Provide SvPVCLEAR() macro
85ab1f
MIME-Version: 1.0
85ab1f
Content-Type: text/plain; charset=UTF-8
85ab1f
Content-Transfer-Encoding: 8bit
85ab1f
85ab1f
To build with perl <= 5.25.5.
85ab1f
85ab1f
Signed-off-by: Petr Písař <ppisar@redhat.com>
85ab1f
---
85ab1f
 Dumper.xs | 5 +++++
85ab1f
 1 file changed, 5 insertions(+)
85ab1f
85ab1f
diff --git a/Dumper.xs b/Dumper.xs
85ab1f
index 0e7142e..5a21721 100644
85ab1f
--- a/Dumper.xs
85ab1f
+++ b/Dumper.xs
85ab1f
@@ -8,6 +8,11 @@
85ab1f
 #  include "ppport.h"
85ab1f
 #endif
85ab1f
 
85ab1f
+/* SvPVCLEAR was added after 5.25.5 and ppport.h does not provide it */
85ab1f
+#if !defined SvPVCLEAR
85ab1f
+#define SvPVCLEAR(x) sv_setpvs((x), "")
85ab1f
+#endif
85ab1f
+
85ab1f
 #if PERL_VERSION < 8
85ab1f
 #  define DD_USE_OLD_ID_FORMAT
85ab1f
 #endif
85ab1f
-- 
85ab1f
2.9.3
85ab1f