summaryrefslogtreecommitdiff
path: root/src/GvimExt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-07 20:58:50 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-07 20:58:50 +0100
commit47cff3a444be7e99bae52b39b2174c22d58d2f86 (patch)
tree3666ff76e1e597b1c8b220a117088b5210768b84 /src/GvimExt
parent4e329fcaf7122370a6d1815a30aaf29476d3f722 (diff)
downloadvim-git-47cff3a444be7e99bae52b39b2174c22d58d2f86.tar.gz
patch 7.4.1508v7.4.1508
Problem: Can't build GvimExt with MingW. Solution: Adjust the makefile. (Ben Fritz)
Diffstat (limited to 'src/GvimExt')
-rw-r--r--src/GvimExt/Make_ming.mak6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/GvimExt/Make_ming.mak b/src/GvimExt/Make_ming.mak
index 2976ea05c..a6ab3ae10 100644
--- 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 @@ $(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 $@