Skip to content

Commit 47cff3a

Browse files
committed
patch 7.4.1508
Problem: Can't build GvimExt with MingW. Solution: Adjust the makefile. (Ben Fritz)
1 parent 4e329fc commit 47cff3a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/GvimExt/Make_ming.mak

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ else
4343
DEL = del
4444
endif
4545
endif
46+
# Set the default $(WINVER) to make it work with WinXP.
47+
ifndef WINVER
48+
WINVER = 0x0501
49+
endif
4650
CXX := $(CROSS_COMPILE)g++
4751
WINDRES := $(CROSS_COMPILE)windres
4852
WINDRES_CXX = $(CXX)
@@ -68,7 +72,7 @@ $(DLL): $(OBJ) $(RES) $(DEFFILE)
6872
$(LIBS)
6973

7074
gvimext.o: gvimext.cpp
71-
$(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
75+
$(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) -c $? -o $@
7276

7377
$(RES): gvimext_ming.rc
7478
$(WINDRES) $(WINDRES_FLAGS) --input-format=rc --output-format=coff -DMING $? -o $@

src/version.c

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

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1508,
746748
/**/
747749
1507,
748750
/**/

0 commit comments

Comments
 (0)