jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.412

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.412
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.412
3ef2ca
Problem:    Can't build on Windows XP with MSVC.
3ef2ca
Solution:   Add SUBSYSTEM_VER to the Makefile. (Yongwei Wu)
3ef2ca
Files:	    src/Make_mvc.mak, src/INSTALLpc.txt
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.411/src/Make_mvc.mak	2014-08-10 16:31:47.376709213 +0200
3ef2ca
--- src/Make_mvc.mak	2014-08-22 18:09:56.711250479 +0200
3ef2ca
***************
3ef2ca
*** 657,662 ****
3ef2ca
--- 657,666 ----
3ef2ca
  SUBSYSTEM = console
3ef2ca
  !endif
3ef2ca
  
3ef2ca
+ !if "$(SUBSYSTEM_VER)" != ""
3ef2ca
+ SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)
3ef2ca
+ !endif
3ef2ca
+ 
3ef2ca
  !if "$(GUI)" == "yes" && "$(DIRECTX)" == "yes"
3ef2ca
  CFLAGS = $(CFLAGS) $(DIRECTX_DEFS)
3ef2ca
  GUI_INCL = $(GUI_INCL) $(DIRECTX_INCL)
3ef2ca
*** ../vim-7.4.411/src/INSTALLpc.txt	2012-08-29 17:29:09.000000000 +0200
3ef2ca
--- src/INSTALLpc.txt	2014-08-22 18:09:56.711250479 +0200
3ef2ca
***************
3ef2ca
*** 192,197 ****
3ef2ca
--- 192,221 ----
3ef2ca
  Vim with Make_mvc.mak.
3ef2ca
  
3ef2ca
  
3ef2ca
+ Targeting Windows XP with new MSVC      *new-msvc-windows-xp*
3ef2ca
+ ----------------------------------
3ef2ca
+ 
3ef2ca
+ Beginning with Visual C++ 2010, Microsoft changed the behavior of LINK.EXE
3ef2ca
+ so that it targets Windows 6.0 (Vista) by default.  In order to override
3ef2ca
+ this, the target Windows version number needs to be passed to LINK like
3ef2ca
+ follows:
3ef2ca
+     LINK ... /subsystem:console,5.01
3ef2ca
+ 
3ef2ca
+ Make_mvc.mak now supports a macro SUBSYSTEM_VER to pass the Windows version.
3ef2ca
+ Use lines like follows to target Windows XP (assuming using Visual C++ 2012
3ef2ca
+ under 64-bit Windows):
3ef2ca
+     set WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A
3ef2ca
+     set SDK_INCLUDE_DIR=%WinSdk71%\Include
3ef2ca
+     set INCLUDE=%WinSdk71%\Include;%INCLUDE%
3ef2ca
+     set LIB=%WinSdk71%\Lib;%LIB%
3ef2ca
+     set PATH=%WinSdk71%\Bin;%PATH%
3ef2ca
+     set CL=/D_USING_V110_SDK71_
3ef2ca
+     nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.01
3ef2ca
+ 
3ef2ca
+ The following Visual C++ team blog can serve as a reference page:
3ef2ca
+     http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx
3ef2ca
+ 
3ef2ca
+ 
3ef2ca
  2. MinGW
3ef2ca
  ========
3ef2ca
  
3ef2ca
*** ../vim-7.4.411/src/version.c	2014-08-22 13:13:24.219895762 +0200
3ef2ca
--- src/version.c	2014-08-22 18:09:52.611250628 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     412,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
hundred-and-one symptoms of being an internet addict:
3ef2ca
42. Your virtual girlfriend finds a new net sweetheart with a larger bandwidth.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///