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