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