Skip to content

Commit 55620ef

Browse files
committed
Fix Perl interface using external linkage in 5.30
The recent fixes for Perl interface for newer versions broke 5.30, and it's now statically linking a function against the lib instead of being inline. Fix that locally in MacVim for now.
1 parent c50fd2f commit 55620ef

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/if_perl.xs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,14 @@ S_POPMARK(pTHX)
704704
}
705705
# endif
706706

707+
// MacVim fix: GIMME_V before 5.32 uses Perl_block_gimme from inline.h. Just
708+
// use GIMME for simplicity as it's completely inlined without needing to
709+
// implement Perl_block_gimme().
710+
# if (PERL_REVISION == 5) && (PERL_VERSION < 32)
711+
#undef GIMME_V
712+
#define GIMME_V GIMME
713+
# endif
714+
707715
/* perl-5.32 needs Perl_POPMARK */
708716
# if (PERL_REVISION == 5) && (PERL_VERSION >= 32)
709717
# define Perl_POPMARK S_POPMARK

0 commit comments

Comments
 (0)