Karsten Hopp 8cfad4
To: vim_dev@googlegroups.com
Karsten Hopp 8cfad4
Subject: Patch 7.3.322
Karsten Hopp 8cfad4
Fcc: outbox
Karsten Hopp 8cfad4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8cfad4
Mime-Version: 1.0
Karsten Hopp 8cfad4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8cfad4
Content-Transfer-Encoding: 8bit
Karsten Hopp 8cfad4
------------
Karsten Hopp 8cfad4
Karsten Hopp 8cfad4
Patch 7.3.322
Karsten Hopp 8cfad4
Problem:    #ifdef for PDP_RETVAL doesn't work, INT_PTR can be a typedef.
Karsten Hopp 8cfad4
Solution:   Check the MSC version and 64 bit flags. (Sergiu Dotenco)
Karsten Hopp 8cfad4
Files:	    src/os_mswin.c
Karsten Hopp 8cfad4
Karsten Hopp 8cfad4
Karsten Hopp 8cfad4
*** ../vim-7.3.321/src/os_mswin.c	2011-08-10 17:07:56.000000000 +0200
Karsten Hopp 8cfad4
--- src/os_mswin.c	2011-09-21 20:09:05.000000000 +0200
Karsten Hopp 8cfad4
***************
Karsten Hopp 8cfad4
*** 1781,1787 ****
Karsten Hopp 8cfad4
  }
Karsten Hopp 8cfad4
  
Karsten Hopp 8cfad4
  /* Attempt to make this work for old and new compilers */
Karsten Hopp 8cfad4
! #if !defined(_MSC_VER) || (_MSC_VER < 1300) || !defined(INT_PTR)
Karsten Hopp 8cfad4
  # define PDP_RETVAL BOOL
Karsten Hopp 8cfad4
  #else
Karsten Hopp 8cfad4
  # define PDP_RETVAL INT_PTR
Karsten Hopp 8cfad4
--- 1781,1787 ----
Karsten Hopp 8cfad4
  }
Karsten Hopp 8cfad4
  
Karsten Hopp 8cfad4
  /* Attempt to make this work for old and new compilers */
Karsten Hopp 8cfad4
! #if !defined(_WIN64) && (!defined(_MSC_VER) || _MSC_VER < 1300)
Karsten Hopp 8cfad4
  # define PDP_RETVAL BOOL
Karsten Hopp 8cfad4
  #else
Karsten Hopp 8cfad4
  # define PDP_RETVAL INT_PTR
Karsten Hopp 8cfad4
*** ../vim-7.3.321/src/version.c	2011-09-21 19:50:00.000000000 +0200
Karsten Hopp 8cfad4
--- src/version.c	2011-09-21 20:08:29.000000000 +0200
Karsten Hopp 8cfad4
***************
Karsten Hopp 8cfad4
*** 711,712 ****
Karsten Hopp 8cfad4
--- 711,714 ----
Karsten Hopp 8cfad4
  {   /* Add new patch number below this line */
Karsten Hopp 8cfad4
+ /**/
Karsten Hopp 8cfad4
+     322,
Karsten Hopp 8cfad4
  /**/
Karsten Hopp 8cfad4
Karsten Hopp 8cfad4
-- 
Karsten Hopp 8cfad4
Don't Panic!
Karsten Hopp 8cfad4
		-- The Hitchhiker's Guide to the Galaxy
Karsten Hopp 8cfad4
Karsten Hopp 8cfad4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8cfad4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8cfad4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8cfad4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///