This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dist/threads-shared: use PERL_VERSION compare macro
authorNicolas R <atoomic@cpan.org>
Wed, 12 Aug 2020 20:28:33 +0000 (15:28 -0500)
committerℕicolas ℝ <nicolas@atoomic.org>
Mon, 17 Aug 2020 15:13:28 +0000 (09:13 -0600)
dist/threads-shared/lib/threads/shared.pm
dist/threads-shared/shared.xs

index bd0e437..3674d83 100644 (file)
@@ -8,7 +8,7 @@ use Config;
 
 use Scalar::Util qw(reftype refaddr blessed);
 
-our $VERSION = '1.61'; # Please update the pod, too.
+our $VERSION = '1.62'; # Please update the pod, too.
 my $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;
 
@@ -196,7 +196,7 @@ threads::shared - Perl extension for sharing data structures between threads
 
 =head1 VERSION
 
-This document describes threads::shared version 1.61
+This document describes threads::shared version 1.62
 
 =head1 SYNOPSIS
 
index 858c6d6..4931a61 100644 (file)
@@ -1183,7 +1183,7 @@ sharedsv_array_mg_free(pTHX_ SV *sv, MAGIC *mg)
  * This is called when perl is about to access an element of
  * the array -
  */
-#if PERL_VERSION >= 11
+#if PERL_VERSION_GE(5,11,0)
 static int
 sharedsv_array_mg_copy(pTHX_ SV *sv, MAGIC* mg,
                        SV *nsv, const char *name, I32 namlen)