On Tue, Jan 5, 2010 at 8:52 AM, Sergey Khorev wrote:
> Hi,
>
> has("win64") returns 0 even for x64 version of Vim. It seems we need
> to define WIN64 for this to work. Something like that:
>
> *** ../vim72.323/src/Make_mvc.mak       Wed Dec 23 09:36:54 2009
> --- src/Make_mvc.mak    Tue Jan  5 16:46:26 2010
> ***************
> *** 314,319 ****
> --- 314,323 ----
>  #>>>>> end of choices
>  ###########################################################################
>
> + !if ("$(CPU)" == "AMD64") || ("$(CPU)" == "IA64")
> + CFLAGS=$(CFLAGS) -DWIN64
> + !endif
> +
>  !ifdef OS
>  OS_TYPE       = winnt
>  DEL_TREE = rmdir /s /q
>
>
> --
> Sergey Khorev
> http://sites.google.com/site/khorser
> Can anybody think of a good tagline I can steal?

Isn't that only checking the type of CPU that the vim binary was built
with, instead of whether it was built as an x64 binary?  Or does
defining WIN64 cause an x64 binary to be built instead?

I'm not sure what has("win64") should be returning based only on
reading the help, but I'd imagine it should either be a) whether the
vim binary itself is a 64 bit binary, or  b) whether the OS that the
binary is running on is a 64-bit version of windows.  The latter seems
more useful, but I'm not sure just from the help.  If I'm right,
though, it would have to be a runtime test; nothing at compile time
could do the trick.

~Matt
-- 
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui