comparison src/if_perl.xs @ 5261:b882d4b14e00 v7.4b.007

updated for version 7.4b.007 Problem: On 32 bit MS-Windows :perldo does not work. Solution: Make sure time_t uses 32 bits. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Fri, 02 Aug 2013 16:10:32 +0200
parents 517fa1a34c7c
children 585b623a1aa3
comparison
equal deleted inserted replaced
5260:e1d2d37208c1 5261:b882d4b14e00
11 */ 11 */
12 12
13 #define _memory_h /* avoid memset redeclaration */ 13 #define _memory_h /* avoid memset redeclaration */
14 #define IN_PERL_FILE /* don't include if_perl.pro from proto.h */ 14 #define IN_PERL_FILE /* don't include if_perl.pro from proto.h */
15 15
16 /*
17 * Currently 32-bit version of ActivePerl is built with VC6.
18 * (http://community.activestate.com/faq/windows-compilers-perl-modules)
19 * It means that time_t should be 32-bit. However the default size of
20 * time_t is 64-bit since VC8. So we have to define _USE_32BIT_TIME_T.
21 */
22 #if defined(WIN32) && !defined(_WIN64)
23 # define _USE_32BIT_TIME_T
24 #endif
25
16 #include "vim.h" 26 #include "vim.h"
27
28 #include <EXTERN.h>
29 #include <perl.h>
30 #include <XSUB.h>
17 31
18 32
19 /* 33 /*
20 * Work around clashes between Perl and Vim namespace. proto.h doesn't 34 * Work around clashes between Perl and Vim namespace. proto.h doesn't
21 * include if_perl.pro and perlsfio.pro when IN_PERL_FILE is defined, because 35 * include if_perl.pro and perlsfio.pro when IN_PERL_FILE is defined, because