Skip to content

Commit 3950bc9

Browse files
committed
updated for version 7.4.127
Problem: Perl 5.18 on Unix doesn't work. Solution: Move workaround to after including vim.h. (Ken Takata)
1 parent 6d69deb commit 3950bc9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/if_perl.xs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
# define _USE_32BIT_TIME_T
2525
#endif
2626

27-
/* Work around for perl-5.18.
28-
* Don't include "perl\lib\CORE\inline.h" for now,
29-
* include it after Perl_sv_free2 is defined. */
30-
#ifdef DYNAMIC_PERL
31-
# define PERL_NO_INLINE_FUNCTIONS
32-
#endif
33-
3427
/*
3528
* Prevent including winsock.h. perl.h tries to detect whether winsock.h is
3629
* already included before including winsock2.h, because winsock2.h isn't
@@ -44,6 +37,13 @@
4437

4538
#include "vim.h"
4639

40+
/* Work around for perl-5.18.
41+
* Don't include "perl\lib\CORE\inline.h" for now,
42+
* include it after Perl_sv_free2 is defined. */
43+
#ifdef DYNAMIC_PERL
44+
# define PERL_NO_INLINE_FUNCTIONS
45+
#endif
46+
4747
#include <EXTERN.h>
4848
#include <perl.h>
4949
#include <XSUB.h>

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
127,
741743
/**/
742744
126,
743745
/**/

0 commit comments

Comments
 (0)