Skip to content

Commit e16b00a

Browse files
committed
patch 8.0.0881: win32.mak no longer included in Windows SDK
Problem: win32.mak no longer included in Windows SDK. Solution: Do not include win32.mak. (Ken Takata)
1 parent 02113ed commit e16b00a

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

src/GvimExt/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ CPU = i386
3636

3737
!ifdef SDK_INCLUDE_DIR
3838
!include $(SDK_INCLUDE_DIR)\Win32.mak
39-
!else
39+
!elseif "$(USE_WIN32MAK)"=="yes"
4040
!include <Win32.mak>
41+
!else
42+
cc = cl
43+
link = link
44+
rc = rc
45+
cflags = -nologo -c
46+
lflags = -incremental:no -nologo
47+
rcflags = /r
48+
olelibsdll = ole32.lib uuid.lib oleaut32.lib user32.lib gdi32.lib advapi32.lib
4149
!endif
4250

4351
# include CPUARG

src/Make_mvc.mak

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
# This will build the console version of Vim with no additional interfaces.
1616
# To add features, define any of the following:
1717
#
18-
# For MSVC 11 you need to specify where the Win32.mak file is, e.g.:
18+
# For MSVC 11, if you want to include Win32.mak, you need to specify
19+
# where the file is, e.g.:
1920
# SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include"
2021
#
2122
# !!!! After changing features do "nmake clean" first !!!!
@@ -212,7 +213,7 @@ OBJDIR = $(OBJDIR)Z
212213
OBJDIR = $(OBJDIR)d
213214
!endif
214215

215-
# Win32.mak requires that CPU be set appropriately.
216+
# If you include Win32.mak, it requires that CPU be set appropriately.
216217
# To cross-compile for Win64, set CPU=AMD64 or CPU=IA64.
217218

218219
!ifdef PROCESSOR_ARCHITECTURE
@@ -253,12 +254,15 @@ MAKEFLAGS_GVIMEXT = DEBUG=yes
253254
!endif
254255

255256

256-
# Get all sorts of useful, standard macros from the Platform SDK.
257+
# Get all sorts of useful, standard macros from the Platform SDK,
258+
# if SDK_INCLUDE_DIR is set or USE_WIN32MAK is set to "yes".
257259

258260
!ifdef SDK_INCLUDE_DIR
259261
!include $(SDK_INCLUDE_DIR)\Win32.mak
260-
!else
262+
!elseif "$(USE_WIN32MAK)"=="yes"
261263
!include <Win32.mak>
264+
!else
265+
link = link
262266
!endif
263267

264268

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
881,
772774
/**/
773775
880,
774776
/**/

0 commit comments

Comments
 (0)