Loading ...
Sorry, an error occurred while loading the content.

55747Re: [patch] has("win64") returns 0 in 64-bit Vim

Expand Messages
  • Bram Moolenaar
    Jan 5, 2010
    • 0 Attachment
      Sergey Khorev wrote:

      > 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

      In many places in the code _WIN64 is checked for, but the list for has()
      uses WIN64.

      Perhaps we should change them all to WIN64 to be consistent with WIN32,
      and then define WIN64 in vim.h when _WIN64 is defined.

      --
      From "know your smileys":
      y:-) Bad toupee

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
    • Show all 10 messages in this topic