[perl-Glib] GBoxed.xs: Check Glib version prior to enabling GBoxed types
- From: Brian Manning <bmanning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib] GBoxed.xs: Check Glib version prior to enabling GBoxed types
- Date: Mon, 1 Feb 2016 16:48:00 +0000 (UTC)
commit 43dfe286142a4393d26b5c946ecc5c312a322c1e
Author: Brian Manning <bmanning src gnome org>
Date: Sun Jan 24 15:22:02 2016 -0800
GBoxed.xs: Check Glib version prior to enabling GBoxed types
- RT#111150; patch submitted by Torsten Lüttgert <st-cpan at luettgert.de>
GBoxed.xs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/GBoxed.xs b/GBoxed.xs
index 8c3664b..f0dc125 100644
--- a/GBoxed.xs
+++ b/GBoxed.xs
@@ -906,6 +906,8 @@ DESTROY (sv)
if (destroy)
(*destroy) (sv);
+#if GLIB_CHECK_VERSION (2, 32, 0)
+
MODULE = Glib::Boxed PACKAGE = Glib::Bytes PREFIX = g_bytes_
=for DESCRIPTION
@@ -947,3 +949,5 @@ guint g_bytes_hash (GBytes *bytes);
gboolean g_bytes_equal (GBytes *bytes1, GBytes *bytes2);
gint g_bytes_compare (GBytes *bytes1, GBytes *bytes2);
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]