af3703f
To: vim_dev@googlegroups.com
af3703f
Subject: Patch 7.4.128
af3703f
Fcc: outbox
af3703f
From: Bram Moolenaar <Bram@moolenaar.net>
af3703f
Mime-Version: 1.0
af3703f
Content-Type: text/plain; charset=UTF-8
af3703f
Content-Transfer-Encoding: 8bit
af3703f
------------
af3703f
af3703f
Patch 7.4.128
af3703f
Problem:    Perl 5.18 for MSVC doesn't work.
af3703f
Solution:   Add check in makefile and define __inline. (Ken Takata)
af3703f
Files:	    src/Make_mvc.mak, src/if_perl.xs
af3703f
af3703f
af3703f
*** ../vim-7.4.127/src/Make_mvc.mak	2013-11-09 02:32:15.000000000 +0100
af3703f
--- src/Make_mvc.mak	2013-12-14 11:47:37.000000000 +0100
af3703f
***************
af3703f
*** 825,831 ****
af3703f
--- 825,836 ----
af3703f
  PERL_LIB = $(PERL_INCDIR)\perl.lib
af3703f
  !else
af3703f
  PERL_DLL = perl$(PERL_VER).dll
af3703f
+ !if exist($(PERL_INCDIR)\perl$(PERL_VER).lib)
af3703f
  PERL_LIB = $(PERL_INCDIR)\perl$(PERL_VER).lib
af3703f
+ !else
af3703f
+ # For ActivePerl 5.18 and later
af3703f
+ PERL_LIB = $(PERL_INCDIR)\libperl$(PERL_VER).a
af3703f
+ !endif
af3703f
  !endif
af3703f
  
af3703f
  CFLAGS = $(CFLAGS) -DFEAT_PERL
af3703f
*** ../vim-7.4.127/src/if_perl.xs	2013-12-14 11:46:04.000000000 +0100
af3703f
--- src/if_perl.xs	2013-12-14 11:47:37.000000000 +0100
af3703f
***************
af3703f
*** 44,49 ****
af3703f
--- 44,54 ----
af3703f
  # define PERL_NO_INLINE_FUNCTIONS
af3703f
  #endif
af3703f
  
af3703f
+ /* Work around for using MSVC and ActivePerl 5.18. */
af3703f
+ #ifdef _MSC_VER
af3703f
+ # define __inline__ __inline
af3703f
+ #endif
af3703f
+ 
af3703f
  #include <EXTERN.h>
af3703f
  #include <perl.h>
af3703f
  #include <XSUB.h>
af3703f
*** ../vim-7.4.127/src/version.c	2013-12-14 11:46:04.000000000 +0100
af3703f
--- src/version.c	2013-12-14 11:48:51.000000000 +0100
af3703f
***************
af3703f
*** 740,741 ****
af3703f
--- 740,743 ----
af3703f
  {   /* Add new patch number below this line */
af3703f
+ /**/
af3703f
+     128,
af3703f
  /**/
af3703f
af3703f
-- 
af3703f
hundred-and-one symptoms of being an internet addict:
af3703f
55. You ask your doctor to implant a gig in your brain.
af3703f
af3703f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
af3703f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
af3703f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
af3703f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///