• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョンe6f0b4fe0b6d4ef0f9b92be02fee3bcca9da119e (tree)
日時2020-02-13 06:00:05
作者Bram Moolenaar <Bram@vim....>
コミッターBram Moolenaar

ログメッセージ

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)

変更サマリ

差分

diff -r 95be753d41c0 -r e6f0b4fe0b6d src/GvimExt/Makefile
--- a/src/GvimExt/Makefile Wed Feb 12 21:30:04 2020 +0100
+++ b/src/GvimExt/Makefile Wed Feb 12 22:00:05 2020 +0100
@@ -10,6 +10,9 @@
1010 !ifndef APPVER
1111 APPVER = 5.01
1212 !endif
13+!ifndef WINVER
14+WINVER = 0x0501
15+!endif
1316
1417 !if "$(DEBUG)" != "yes"
1518 NODEBUG = 1
@@ -53,6 +56,13 @@
5356 # include CPUARG
5457 cflags = $(cflags) $(CPUARG)
5558
59+# set WINVER and _WIN32_WINNT
60+cflags = $(cflags) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
61+
62+!if "$(CL)" == "/D_USING_V110_SDK71_"
63+rcflags = $(rcflags) /D_USING_V110_SDK71_
64+!endif
65+
5666 SUBSYSTEM = console
5767 !if "$(SUBSYSTEM_VER)" != ""
5868 SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)
diff -r 95be753d41c0 -r e6f0b4fe0b6d src/Make_mvc.mak
--- a/src/Make_mvc.mak Wed Feb 12 21:30:04 2020 +0100
+++ b/src/Make_mvc.mak Wed Feb 12 22:00:05 2020 +0100
@@ -626,6 +626,12 @@
626626 NODEFAULTLIB = /nodefaultlib
627627 !endif
628628
629+# Specify source code charset to suppress warning C4819 on non-English
630+# environment. Only available from MSVC 14.
631+!if $(MSVC_MAJOR) >= 14
632+CFLAGS = $(CFLAGS) /source-charset:utf-8
633+!endif
634+
629635 # Use multiprocess build on MSVC 10
630636 !if ("$(USE_MP)" == "yes") && ($(MSVC_MAJOR) >= 10)
631637 CFLAGS = $(CFLAGS) /MP
@@ -669,6 +675,9 @@
669675
670676 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
671677 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
678+! if "$(CL)" == "/D_USING_V110_SDK71_"
679+RCFLAGS = $(RCFLAGS) /D_USING_V110_SDK71_
680+! endif
672681 ! ifdef USE_MSVCRT
673682 CFLAGS = $(CFLAGS) /MD
674683 LIBC = msvcrt.lib
diff -r 95be753d41c0 -r e6f0b4fe0b6d src/version.c
--- a/src/version.c Wed Feb 12 21:30:04 2020 +0100
+++ b/src/version.c Wed Feb 12 22:00:05 2020 +0100
@@ -743,6 +743,8 @@
743743 static int included_patches[] =
744744 { /* Add new patch number below this line */
745745 /**/
746+ 249,
747+/**/
746748 248,
747749 /**/
748750 247,
旧リポジトリブラウザで表示