[perl-Glib] Win32: only export the GVariant conversion symbols when available



commit f714d9dfab09cc7a587a52ce63ee6a70f1ab23c4
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Mon Jul 4 18:25:10 2016 +0200

    Win32: only export the GVariant conversion symbols when available
    
    This avoids linker errors when using an older libglib.

 Glib.exports |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/Glib.exports b/Glib.exports
index 6feb884..a9a06bc 100644
--- a/Glib.exports
+++ b/Glib.exports
@@ -1,22 +1,20 @@
+#!perl
 # Copyright (C) 2003-2005 by the gtk2-perl team (see the file AUTHORS for
 # the full list)
-# 
+#
 # This library is free software; you can redistribute it and/or modify it under
 # the terms of the GNU Library General Public License as published by the Free
 # Software Foundation; either version 2.1 of the License, or (at your option)
 # any later version.
-# 
+#
 # This library is distributed in the hope that it will be useful, but WITHOUT
 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 # FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for
 # more details.
-# 
+#
 # You should have received a copy of the GNU Library General Public License
 # along with this library; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# $Id$
-#
 
 @exports = qw(
 SvGChar
@@ -26,8 +24,6 @@ SvGParamSpec
 SvGSignalFlags
 SvGInt64
 SvGUInt64
-SvGVariant
-SvGVariantType
 _gperl_attach_mg
 _gperl_call_XS
 _gperl_find_mg
@@ -113,9 +109,14 @@ newSVGSignalInvocationHint
 newSVGSignalQuery
 newSVGInt64
 newSVGUInt64
-newSVGVariant
-newSVGVariant_noinc
-newSVGVariantType
-newSVGVariantType_own
 );
+if (ExtUtils::PkgConfig->atleast_version ('glib-2.0', '2.24.0')) {
+  push @exports, qw(
+    SvGVariant
+    SvGVariantType
+    newSVGVariant
+    newSVGVariant_noinc
+    newSVGVariantType
+    newSVGVariantType_own);
+}
 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]