]> granicus.if.org Git - vim/commitdiff
updated for version 7.4b.007 v7.4b.007
authorBram Moolenaar <Bram@vim.org>
Fri, 2 Aug 2013 14:10:32 +0000 (16:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 2 Aug 2013 14:10:32 +0000 (16:10 +0200)
Problem:    On 32 bit MS-Windows :perldo does not work.
Solution:   Make sure time_t uses 32 bits. (Ken Takata)

src/if_perl.xs
src/version.c
src/vim.h

index 118f60487100f181a7623d6cba5fbb28e72670f7..4c46f2abbf81281f6740730dc0873e325d1baa13 100644 (file)
 #define _memory_h      /* avoid memset redeclaration */
 #define IN_PERL_FILE   /* don't include if_perl.pro from proto.h */
 
+/*
+ * Currently 32-bit version of ActivePerl is built with VC6.
+ * (http://community.activestate.com/faq/windows-compilers-perl-modules)
+ * It means that time_t should be 32-bit. However the default size of
+ * time_t is 64-bit since VC8. So we have to define _USE_32BIT_TIME_T.
+ */
+#if defined(WIN32) && !defined(_WIN64)
+# define _USE_32BIT_TIME_T
+#endif
+
 #include "vim.h"
 
+#include <EXTERN.h>
+#include <perl.h>
+#include <XSUB.h>
+
 
 /*
  * Work around clashes between Perl and Vim namespace. proto.h doesn't
index 77c3e8d571cd2d2d928b5688f2f14030813fad9d..d34ed63ddf2c68d2ef11cd47eacc7e41fca1140a 100644 (file)
@@ -727,6 +727,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    7,
 /**/
     6,
 /**/
index 1555defda0dd4b350087ee3f5fd751a6fdd4d25c..3d61f3a35fcf9834369783523615a9ad691bcee5 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -2180,10 +2180,6 @@ typedef int VimClipboard;        /* This is required for the prototypes. */
   /* Borland has the structure stati64 but not _stati64 */
 #  define _stati64 stati64
 # endif
-
-# include <EXTERN.h>
-# include <perl.h>
-# include <XSUB.h>
 #endif
 
 /* values for vim_handle_signal() that are not a signal */