Mercurial > vim
diff src/GvimExt/Makefile @ 19382:e6f0b4fe0b6d v8.2.0249
patch 8.2.0249: MS-Windows: various warnings
Commit: https://github.com/vim/vim/commit/3fb377fa78131004138b22a87afe33eeb7649b94
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 12 21:52:32 2020 +0100
patch 8.2.0249: MS-Windows: various warnings
Problem: MS-Windows: various warnings.
Solution: Set the charset to utf-8. Add _WIN32_WINNT and _USING_V110_SDK71_.
(Ken Takata, closes #5625)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Feb 2020 22:00:05 +0100 |
parents | b2ed528e85ef |
children | ba9d53c7c509 |
line wrap: on
line diff
--- a/src/GvimExt/Makefile +++ b/src/GvimExt/Makefile @@ -10,6 +10,9 @@ TARGETOS = WINNT !ifndef APPVER APPVER = 5.01 !endif +!ifndef WINVER +WINVER = 0x0501 +!endif !if "$(DEBUG)" != "yes" NODEBUG = 1 @@ -53,6 +56,13 @@ olelibsdll = ole32.lib uuid.lib oleaut32 # include CPUARG cflags = $(cflags) $(CPUARG) +# set WINVER and _WIN32_WINNT +cflags = $(cflags) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) + +!if "$(CL)" == "/D_USING_V110_SDK71_" +rcflags = $(rcflags) /D_USING_V110_SDK71_ +!endif + SUBSYSTEM = console !if "$(SUBSYSTEM_VER)" != "" SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)