changeset 8434:a0e7d7070799 v7.4.1508

commit https://github.com/vim/vim/commit/47cff3a444be7e99bae52b39b2174c22d58d2f86 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 7 20:58:50 2016 +0100 patch 7.4.1508 Problem: Can't build GvimExt with MingW. Solution: Adjust the makefile. (Ben Fritz)
author Christian Brabandt <cb@256bit.org>
date Mon, 07 Mar 2016 21:00:04 +0100
parents 5ae431a522ac
children 1f91306880c1
files src/GvimExt/Make_ming.mak src/version.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/GvimExt/Make_ming.mak
+++ b/src/GvimExt/Make_ming.mak
@@ -43,6 +43,10 @@ else
 DEL = del
 endif
 endif
+# Set the default $(WINVER) to make it work with WinXP.
+ifndef WINVER
+WINVER = 0x0501
+endif
 CXX := $(CROSS_COMPILE)g++
 WINDRES := $(CROSS_COMPILE)windres
 WINDRES_CXX = $(CXX)
@@ -68,7 +72,7 @@ all: all-before $(DLL) all-after
 			$(LIBS)
 
 gvimext.o: gvimext.cpp
-	$(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
+	$(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) -c $? -o $@
 
 $(RES): gvimext_ming.rc
 	$(WINDRES) $(WINDRES_FLAGS) --input-format=rc --output-format=coff -DMING $? -o $@
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1508,
+/**/
     1507,
 /**/
     1506,