]> granicus.if.org Git - vim/commitdiff
patch 7.4.1508 v7.4.1508
authorBram Moolenaar <Bram@vim.org>
Mon, 7 Mar 2016 19:58:50 +0000 (20:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 7 Mar 2016 19:58:50 +0000 (20:58 +0100)
Problem:    Can't build GvimExt with MingW.
Solution:   Adjust the makefile. (Ben Fritz)

src/GvimExt/Make_ming.mak
src/version.c

index 2976ea05cfec64775e101cdfcc15e0a171854c6c..a6ab3ae10e26e2d30d68fc1fe0a6486633c66df9 100644 (file)
@@ -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 @@ $(DLL): $(OBJ) $(RES) $(DEFFILE)
                        $(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 $@
index 40690ec805845956f5c774905389e9e132310118..c4012e265e501cee65246464d715874202b59fc3 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1508,
 /**/
     1507,
 /**/