Ken Takata wrote:

> :perldo doesn't work with ActivePerl 5.14 on 32-bit Windows when complied
> by MSVC8 or later. (And :perl may crash with ActivePerl 5.16.)
> It is caused by mismatch of time_t size.
> The following patch fixes this:
> 
> --- a/src/Make_mvc.mak
> +++ b/src/Make_mvc.mak
> @@ -846,6 +846,14 @@
>  
>  CFLAGS = $(CFLAGS) -DFEAT_PERL
>  
> +# 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 "$(CPU)" == "i386"
> +CFLAGS = $(CFLAGS) -D_USE_32BIT_TIME_T
> +!endif
> +
>  # Do we want to load Perl dynamically?
>  !if "$(DYNAMIC_PERL)" == "yes"
>  CFLAGS = $(CFLAGS) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"$(PERL_DLL)\"

OK.  Is _USE_32BIT_TIME_T only used by Perl or does it affect the whole
of Vim?

Would there be a way to handle it in the code somehow, with
sizeof(time_t)?

-- 
One difference between a man and a machine is that a machine is quiet
when well oiled.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui