• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

K.Takata's patch queue for Vim


Commit MetaInfo

Revisiónf65c37ded38b32e6dba672bfe1e2e3a80f463f0b (tree)
Tiempo2022-01-25 20:45:08
AutorK.Takata <kentkt@csc....>
CommiterK.Takata

Log Message

Update for 8.2.4213

Remove merged patch.

Cambiar Resumen

  • modified: series (diff)
  • delete: win32-adjust-makefile
  • delete: win32-drop-support-for-old-sdk.patch

Diferencia incremental

diff -r f38060505490 -r f65c37ded38b series
--- a/series Tue Jan 25 15:15:55 2022 +0900
+++ b/series Tue Jan 25 20:45:08 2022 +0900
@@ -24,11 +24,9 @@
2424 drop-support-for-glib-2.2.patch #+rejected
2525 big5corr.patch
2626 support-tee-with-sp-on-windows.patch
27-win32-drop-support-for-old-sdk.patch
2827 win32-drop-support-for-pre-vista.patch
2928 add-msvc-latest-bat.patch
3029 add-testing-option-7970.patch
3130 wip-win32-vimdir-encoding.patch #+wip
3231 win32-directwrite-ambiwidth-auto.patch
33-win32-adjust-makefile
3432 fix-config_cache-removal.patch #+rejected
diff -r f38060505490 -r f65c37ded38b win32-adjust-makefile
--- a/win32-adjust-makefile Tue Jan 25 15:15:55 2022 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
1-# HG changeset patch
2-# Parent a5e6cfc03b61260dfc8fd4c698722bf0a666343b
3-
4-diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak
5---- a/src/Make_mvc.mak
6-+++ b/src/Make_mvc.mak
7-@@ -705,8 +705,8 @@ RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
8- CFLAGS = $(CFLAGS) /MD
9- LIBC = msvcrt.lib
10- ! else
11-+CFLAGS = $(CFLAGS) /Zl /MT
12- LIBC = libcmt.lib
13--CFLAGS = $(CFLAGS) /Zl /MT
14- ! endif
15-
16- !else # DEBUG
17-@@ -727,8 +727,8 @@ LIBC = /fixed:no
18- CFLAGS = $(CFLAGS) /MDd
19- LIBC = $(LIBC) msvcrtd.lib
20- ! else
21-+CFLAGS = $(CFLAGS) /Zl /MTd
22- LIBC = $(LIBC) libcmtd.lib
23--CFLAGS = $(CFLAGS) /Zl /MTd
24- ! endif
25-
26- !endif # DEBUG
27-@@ -797,7 +797,7 @@ OBJ = \
28- $(OUTDIR)\hashtab.obj \
29- $(OUTDIR)\help.obj \
30- $(OUTDIR)\highlight.obj \
31-- $(OBJDIR)\if_cscope.obj \
32-+ $(OUTDIR)\if_cscope.obj \
33- $(OUTDIR)\indent.obj \
34- $(OUTDIR)\insexpand.obj \
35- $(OUTDIR)\json.obj \
diff -r f38060505490 -r f65c37ded38b win32-drop-support-for-old-sdk.patch
--- a/win32-drop-support-for-old-sdk.patch Tue Jan 25 15:15:55 2022 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,539 +0,0 @@
1-# HG changeset patch
2-# Parent 4a8d82c3431886126252ace83d5ff4679b809173
3-
4-diff --git a/Filelist b/Filelist
5---- a/Filelist
6-+++ b/Filelist
7-@@ -543,7 +543,6 @@ SRC_DOS = \
8- tools/rename.bat \
9- src/bigvim.bat \
10- src/bigvim64.bat \
11-- src/msvcsetup.bat \
12- src/msvc2008.bat \
13- src/msvc2010.bat \
14- src/msvc2015.bat \
15-diff --git a/src/INSTALLpc.txt b/src/INSTALLpc.txt
16---- a/src/INSTALLpc.txt
17-+++ b/src/INSTALLpc.txt
18-@@ -155,84 +155,8 @@ OLDER VERSIONS
19- The minimal supported version is Windows XP. Building with older compilers
20- might still work, but these instructions might be outdated.
21-
22--If you need the executable to run on Windows 98 or ME, use the 2003 one
23--|msvc-2003-toolkit| or |msvc-2005-express|, and use the source code before
24--8.0.0029.
25--
26--Visual C++ Toolkit 2003 *msvc-2003-toolkit*
27-------------------------
28--
29--NOTE: this most likely does not work
30--
31--You could download the Microsoft Visual C++ Toolkit 2003 from
32-- http://msdn.microsoft.com/visualc/vctoolkit2003/
33--Unfortunately this URL is no longer valid. Unofficial downloads appear to be
34--available from links mentioned on these pages (use at your own risk):
35-- http://www.filewatcher.com/m/VCToolkitSetup.exe.32952488.0.0.html
36-- http://feargame.net/wiki/index.php?title=Building_Source_with_the_VC2003_Toolkit
37--
38--This contains the command-line tools (compiler, linker, CRT headers,
39--and libraries) for Visual Studio .NET 2003, but not the Visual Studio IDE.
40--To compile and debug Vim with the VC2003 Toolkit, you will also need
41--|ms-platform-sdk|, |dotnet-1.1-redist|, |dotnet-1.1-sdk|,
42--and |windbg-download|.
43--
44--It's easier to download Visual C++ 2008 Express Edition, |msvc-2008-express|,
45--which is freely available in perpetuity.
46--
47--The free Code::Blocks IDE works with the VC2003 Toolkit, as described at
48-- http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE
49--(This site also takes you through configuring a number of other
50--free C compilers for Win32.)
51--
52--To compile Vim using the VC2003 Toolkit and Make_mvc.mak, you must first
53--execute the following commands in a cmd.exe window (the msvcsetup.bat batch
54--file can be used):
55--
56-- set PATH=%SystemRoot%\Microsoft.NET\Framework\v1.1.4322;%PATH%
57-- call "%VCToolkitInstallDir%vcvars32.bat"
58-- set MSVCVer=7.1
59-- call "%ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd"
60-- set LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB%
61--
62--Now you can build Vim with Make_mvc.mak.
63--
64--
65--Getting the Windows Platform SDK *ms-platform-sdk*
66--
67--You will also need a copy of the Windows Platform SDK. Specifically, you need
68--the Windows Core SDK subset of the Platform SDK, which contains the Windows
69--headers and libraries. You need to search for it, Microsoft keeps changing
70--the URL.
71--
72--
73--Getting the .NET Framework 1.1 Runtime *dotnet-1.1-redist*
74--
75--You need the .NET Framework 1.1 Redistributable Package from
76-- http://www.microsoft.com/downloads/details.aspx?familyid=262d25e3-f589-4842-8157-034d1e7cf3a3
77--or from Windows Update:
78-- http://windowsupdate.microsoft.com/
79--This is needed to install |dotnet-1.1-sdk|. It also contains cvtres.exe,
80--which is needed to link Vim.
81--
82--
83--Getting the .NET Framework 1.1 SDK *dotnet-1.1-sdk*
84--
85--You need the .NET Framework 1.1 SDK from
86-- http://www.microsoft.com/downloads/details.aspx?familyid=9b3a2ca6-3647-4070-9f41-a333c6b9181d
87--This contains some additional libraries needed to compile Vim,
88--such as msvcrt.lib. You must install |dotnet-1.1-redist| before
89--installing the .NET 1.1 SDK.
90--
91--
92--Getting the WinDbg debugger *windbg-download*
93--
94--The Debugging Tools for Windows can be downloaded from
95-- http://www.microsoft.com/whdc/devtools/debugging/default.mspx
96--This includes the WinDbg debugger, which you will want if you ever need
97--to debug Vim itself. An earlier version of the Debugging Tools
98--is also available through the Platform SDK, |ms-platform-sdk|.
99--
100-+If you need the executable to run on Windows 98 or ME, use the 2005 one
101-+|msvc-2005-express|, and use the source code before 8.0.0029.
102-
103- Visual C++ 2005 Express Edition *msvc-2005-express*
104- -------------------------------
105-diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak
106---- a/src/Make_mvc.mak
107-+++ b/src/Make_mvc.mak
108-@@ -305,10 +305,6 @@ MSVCRT_NAME = msvcr$(MSVCRT_VER)
109- MSVCRT_NAME = vcruntime$(MSVCRT_VER)
110- !endif
111-
112--!if $(MSVC_MAJOR) == 6
113--CPU = ix86
114--!endif
115--
116- ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET)
117- !ifndef WINVER
118- WINVER = 0x0501
119-@@ -719,12 +715,8 @@ DEBUGINFO = /ZI
120- ! endif
121- CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Od
122- RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG
123--# The /fixed:no is needed for Quantify. Assume not 4.? as unsupported in VC4.0.
124--! if $(MSVC_MAJOR) == 4
125--LIBC =
126--! else
127-+# The /fixed:no is needed for Quantify.
128- LIBC = /fixed:no
129--! endif
130- ! ifdef USE_MSVCRT
131- CFLAGS = $(CFLAGS) /MDd
132- LIBC = $(LIBC) msvcrtd.lib
133-diff --git a/src/gui_w32.c b/src/gui_w32.c
134---- a/src/gui_w32.c
135-+++ b/src/gui_w32.c
136-@@ -218,14 +218,6 @@ gui_mch_set_rendering_options(char_u *s)
137-
138- #define DLG_NONBUTTON_CONTROL 5000 // First ID of non-button controls
139-
140--#ifndef WM_XBUTTONDOWN // For Win2K / winME ONLY
141--# define WM_XBUTTONDOWN 0x020B
142--# define WM_XBUTTONUP 0x020C
143--# define WM_XBUTTONDBLCLK 0x020D
144--# define MK_XBUTTON1 0x0020
145--# define MK_XBUTTON2 0x0040
146--#endif
147--
148- #ifndef WM_DPICHANGED
149- # define WM_DPICHANGED 0x02E0
150- #endif
151-@@ -288,10 +280,6 @@ typedef int COLORREF;
152- typedef int HCURSOR;
153- #endif
154-
155--#ifndef GET_X_LPARAM
156--# define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
157--#endif
158--
159- static void _OnPaint(HWND hwnd);
160- static void fill_rect(const RECT *rcp, HBRUSH hbr, COLORREF color);
161- static void clear_rect(RECT *rcp);
162-@@ -966,9 +954,6 @@ char_to_string(int ch, char_u *string, i
163- button = MOUSE_RIGHT;
164- else if (s_uMsg == WM_XBUTTONDOWN || s_uMsg == WM_XBUTTONDBLCLK)
165- {
166--#ifndef GET_XBUTTON_WPARAM
167--# define GET_XBUTTON_WPARAM(wParam) (HIWORD(wParam))
168--#endif
169- button = ((GET_XBUTTON_WPARAM(s_wParam) == 1) ? MOUSE_X1 : MOUSE_X2);
170- }
171- else if (s_uMsg == WM_CAPTURECHANGED)
172-@@ -2448,10 +2433,6 @@ gui_mch_show_toolbar(int showit)
173-
174- if (showit)
175- {
176--# ifndef TB_SETUNICODEFORMAT
177-- // For older compilers. We assume this never changes.
178--# define TB_SETUNICODEFORMAT 0x2005
179--# endif
180- // Enable unicode support
181- SendMessage(s_toolbarhwnd, TB_SETUNICODEFORMAT, (WPARAM)TRUE,
182- (LPARAM)0);
183-@@ -2585,10 +2566,6 @@ gui_mch_update_tabline(void)
184- if (s_tabhwnd == NULL)
185- return;
186-
187--# ifndef CCM_SETUNICODEFORMAT
188-- // For older compilers. We assume this never changes.
189--# define CCM_SETUNICODEFORMAT 0x2005
190--# endif
191- // Enable unicode support
192- SendMessage(s_tabhwnd, CCM_SETUNICODEFORMAT, (WPARAM)TRUE, (LPARAM)0);
193-
194-@@ -3418,10 +3395,6 @@ gui_mch_init_font(char_u *font_name, int
195- return OK;
196- }
197-
198--#ifndef WPF_RESTORETOMAXIMIZED
199--# define WPF_RESTORETOMAXIMIZED 2 // just in case someone doesn't have it
200--#endif
201--
202- /*
203- * Return TRUE if the GUI window is maximized, filling the whole screen.
204- * Also return TRUE if the window is snapped.
205-@@ -3905,113 +3878,6 @@ gui_mch_browsedir(char_u *title, char_u
206- # include "xpm_w32.h"
207- #endif
208-
209--#ifdef __MINGW32__
210--/*
211-- * Add a lot of missing defines.
212-- * They are not always missing, we need the #ifndef's.
213-- */
214--# ifndef IsMinimized
215--# define IsMinimized(hwnd) IsIconic(hwnd)
216--# endif
217--# ifndef IsMaximized
218--# define IsMaximized(hwnd) IsZoomed(hwnd)
219--# endif
220--# ifndef SelectFont
221--# define SelectFont(hdc, hfont) ((HFONT)SelectObject((hdc), (HGDIOBJ)(HFONT)(hfont)))
222--# endif
223--# ifndef GetStockBrush
224--# define GetStockBrush(i) ((HBRUSH)GetStockObject(i))
225--# endif
226--# ifndef DeleteBrush
227--# define DeleteBrush(hbr) DeleteObject((HGDIOBJ)(HBRUSH)(hbr))
228--# endif
229--
230--# ifndef HANDLE_WM_RBUTTONDBLCLK
231--# define HANDLE_WM_RBUTTONDBLCLK(hwnd, wParam, lParam, fn) \
232-- ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
233--# endif
234--# ifndef HANDLE_WM_MBUTTONUP
235--# define HANDLE_WM_MBUTTONUP(hwnd, wParam, lParam, fn) \
236-- ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
237--# endif
238--# ifndef HANDLE_WM_MBUTTONDBLCLK
239--# define HANDLE_WM_MBUTTONDBLCLK(hwnd, wParam, lParam, fn) \
240-- ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
241--# endif
242--# ifndef HANDLE_WM_LBUTTONDBLCLK
243--# define HANDLE_WM_LBUTTONDBLCLK(hwnd, wParam, lParam, fn) \
244-- ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
245--# endif
246--# ifndef HANDLE_WM_RBUTTONDOWN
247--# define HANDLE_WM_RBUTTONDOWN(hwnd, wParam, lParam, fn) \
248-- ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
249--# endif
250--# ifndef HANDLE_WM_MOUSEMOVE
251--# define HANDLE_WM_MOUSEMOVE(hwnd, wParam, lParam, fn) \
252-- ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
253--# endif
254--# ifndef HANDLE_WM_RBUTTONUP
255--# define HANDLE_WM_RBUTTONUP(hwnd, wParam, lParam, fn) \
256-- ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
257--# endif
258--# ifndef HANDLE_WM_MBUTTONDOWN
259--# define HANDLE_WM_MBUTTONDOWN(hwnd, wParam, lParam, fn) \
260-- ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
261--# endif
262--# ifndef HANDLE_WM_LBUTTONUP
263--# define HANDLE_WM_LBUTTONUP(hwnd, wParam, lParam, fn) \
264-- ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
265--# endif
266--# ifndef HANDLE_WM_LBUTTONDOWN
267--# define HANDLE_WM_LBUTTONDOWN(hwnd, wParam, lParam, fn) \
268-- ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L)
269--# endif
270--# ifndef HANDLE_WM_SYSCHAR
271--# define HANDLE_WM_SYSCHAR(hwnd, wParam, lParam, fn) \
272-- ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L)
273--# endif
274--# ifndef HANDLE_WM_ACTIVATEAPP
275--# define HANDLE_WM_ACTIVATEAPP(hwnd, wParam, lParam, fn) \
276-- ((fn)((hwnd), (BOOL)(wParam), (DWORD)(lParam)), 0L)
277--# endif
278--# ifndef HANDLE_WM_WINDOWPOSCHANGING
279--# define HANDLE_WM_WINDOWPOSCHANGING(hwnd, wParam, lParam, fn) \
280-- (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (LPWINDOWPOS)(lParam))
281--# endif
282--# ifndef HANDLE_WM_VSCROLL
283--# define HANDLE_WM_VSCROLL(hwnd, wParam, lParam, fn) \
284-- ((fn)((hwnd), (HWND)(lParam), (UINT)(LOWORD(wParam)), (int)(short)HIWORD(wParam)), 0L)
285--# endif
286--# ifndef HANDLE_WM_SETFOCUS
287--# define HANDLE_WM_SETFOCUS(hwnd, wParam, lParam, fn) \
288-- ((fn)((hwnd), (HWND)(wParam)), 0L)
289--# endif
290--# ifndef HANDLE_WM_KILLFOCUS
291--# define HANDLE_WM_KILLFOCUS(hwnd, wParam, lParam, fn) \
292-- ((fn)((hwnd), (HWND)(wParam)), 0L)
293--# endif
294--# ifndef HANDLE_WM_HSCROLL
295--# define HANDLE_WM_HSCROLL(hwnd, wParam, lParam, fn) \
296-- ((fn)((hwnd), (HWND)(lParam), (UINT)(LOWORD(wParam)), (int)(short)HIWORD(wParam)), 0L)
297--# endif
298--# ifndef HANDLE_WM_DROPFILES
299--# define HANDLE_WM_DROPFILES(hwnd, wParam, lParam, fn) \
300-- ((fn)((hwnd), (HDROP)(wParam)), 0L)
301--# endif
302--# ifndef HANDLE_WM_CHAR
303--# define HANDLE_WM_CHAR(hwnd, wParam, lParam, fn) \
304-- ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L)
305--# endif
306--# ifndef HANDLE_WM_SYSDEADCHAR
307--# define HANDLE_WM_SYSDEADCHAR(hwnd, wParam, lParam, fn) \
308-- ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L)
309--# endif
310--# ifndef HANDLE_WM_DEADCHAR
311--# define HANDLE_WM_DEADCHAR(hwnd, wParam, lParam, fn) \
312-- ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L)
313--# endif
314--#endif // __MINGW32__
315--
316-
317- // Some parameters for tearoff menus. All in pixels.
318- #define TEAROFF_PADDING_X 2
319-@@ -4021,12 +3887,6 @@ gui_mch_browsedir(char_u *title, char_u
320- #define TEAROFF_COLUMN_PADDING 3 // # spaces to pad column with.
321-
322-
323--// For the Intellimouse:
324--#ifndef WM_MOUSEWHEEL
325--# define WM_MOUSEWHEEL 0x20a
326--#endif
327--
328--
329- #ifdef FEAT_BEVAL_GUI
330- # define ID_BEVAL_TOOLTIP 200
331- # define BEVAL_TEXT_LEN MAXPATHL
332-@@ -4034,86 +3894,8 @@ gui_mch_browsedir(char_u *title, char_u
333- static BalloonEval *cur_beval = NULL;
334- static UINT_PTR BevalTimerId = 0;
335- static DWORD LastActivity = 0;
336--
337--
338--typedef struct tagNMTTDISPINFO_NEW
339--{
340-- NMHDR hdr;
341-- LPSTR lpszText;
342-- char szText[80];
343-- HINSTANCE hinst;
344-- UINT uFlags;
345-- LPARAM lParam;
346--} NMTTDISPINFO_NEW;
347--
348--typedef struct tagTOOLINFOW_NEW
349--{
350-- UINT cbSize;
351-- UINT uFlags;
352-- HWND hwnd;
353-- UINT_PTR uId;
354-- RECT rect;
355-- HINSTANCE hinst;
356-- LPWSTR lpszText;
357-- LPARAM lParam;
358-- void *lpReserved;
359--} TOOLINFOW_NEW;
360--
361--typedef struct tagNMTTDISPINFOW_NEW
362--{
363-- NMHDR hdr;
364-- LPWSTR lpszText;
365-- WCHAR szText[80];
366-- HINSTANCE hinst;
367-- UINT uFlags;
368-- LPARAM lParam;
369--} NMTTDISPINFOW_NEW;
370--
371--
372--# ifndef TTM_SETMAXTIPWIDTH
373--# define TTM_SETMAXTIPWIDTH (WM_USER+24)
374--# endif
375--
376--# ifndef TTF_DI_SETITEM
377--# define TTF_DI_SETITEM 0x8000
378--# endif
379--
380--# ifndef TTN_GETDISPINFO
381--# define TTN_GETDISPINFO (TTN_FIRST - 0)
382--# endif
383--
384- #endif // defined(FEAT_BEVAL_GUI)
385-
386--#if defined(FEAT_TOOLBAR) || defined(FEAT_GUI_TABLINE)
387--// Older MSVC compilers don't have LPNMTTDISPINFO[AW] thus we need to define
388--// it here if LPNMTTDISPINFO isn't defined.
389--// MinGW doesn't define LPNMTTDISPINFO but typedefs it. Thus we need to check
390--// _MSC_VER.
391--# if !defined(LPNMTTDISPINFO) && defined(_MSC_VER)
392--typedef struct tagNMTTDISPINFOA {
393-- NMHDR hdr;
394-- LPSTR lpszText;
395-- char szText[80];
396-- HINSTANCE hinst;
397-- UINT uFlags;
398-- LPARAM lParam;
399--} NMTTDISPINFOA, *LPNMTTDISPINFOA;
400--# define LPNMTTDISPINFO LPNMTTDISPINFOA
401--
402--typedef struct tagNMTTDISPINFOW {
403-- NMHDR hdr;
404-- LPWSTR lpszText;
405-- WCHAR szText[80];
406-- HINSTANCE hinst;
407-- UINT uFlags;
408-- LPARAM lParam;
409--} NMTTDISPINFOW, *LPNMTTDISPINFOW;
410--# endif
411--#endif
412--
413--#ifndef TTN_GETDISPINFOW
414--# define TTN_GETDISPINFOW (TTN_FIRST - 10)
415--#endif
416-
417- // Local variables:
418-
419-@@ -4279,19 +4061,6 @@ gui_mswin_get_menu_height(
420- static void
421- init_mouse_wheel(void)
422- {
423--
424--#ifndef SPI_GETWHEELSCROLLLINES
425--# define SPI_GETWHEELSCROLLLINES 104
426--#endif
427--#ifndef SPI_SETWHEELSCROLLLINES
428--# define SPI_SETWHEELSCROLLLINES 105
429--#endif
430--
431--#define VMOUSEZ_CLASSNAME "MouseZ" // hidden wheel window class
432--#define VMOUSEZ_TITLE "Magellan MSWHEEL" // hidden wheel window title
433--#define VMSH_MOUSEWHEEL "MSWHEEL_ROLLMSG"
434--#define VMSH_SCROLL_LINES "MSH_SCROLL_LINES_MSG"
435--
436- mouse_scroll_lines = 3; // reasonable default
437-
438- // if NT 4.0+ (or Win98) get scroll lines directly from system
439-@@ -5575,12 +5344,6 @@ gui_mch_init(void)
440- #endif
441-
442- #ifdef FEAT_EVAL
443--# if !defined(_MSC_VER) || (_MSC_VER < 1400)
444--// Define HandleToLong for old MS and non-MS compilers if not defined.
445--# ifndef HandleToLong
446--# define HandleToLong(h) ((long)(intptr_t)(h))
447--# endif
448--# endif
449- // set the v:windowid variable
450- set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd));
451- #endif
452-@@ -7956,11 +7719,6 @@ gui_mch_tearoff(
453- #if defined(FEAT_TOOLBAR) || defined(PROTO)
454- # include "gui_w32_rc.h"
455-
456--// This not defined in older SDKs
457--# ifndef TBSTYLE_FLAT
458--# define TBSTYLE_FLAT 0x0800
459--# endif
460--
461- /*
462- * Create the toolbar, initially unpopulated.
463- * (just like the menu, there are no defaults, it's all
464-@@ -8474,10 +8232,10 @@ gui_mch_destroy_sign(void *sign)
465- static void
466- make_tooltip(BalloonEval *beval, char *text, POINT pt)
467- {
468-- TOOLINFOW_NEW *pti;
469-- RECT rect;
470--
471-- pti = alloc(sizeof(TOOLINFOW_NEW));
472-+ TOOLINFOW *pti;
473-+ RECT rect;
474-+
475-+ pti = alloc(sizeof(TOOLINFOW));
476- if (pti == NULL)
477- return;
478-
479-@@ -8489,7 +8247,7 @@ make_tooltip(BalloonEval *beval, char *t
480- SetWindowPos(beval->balloon, HWND_TOPMOST, 0, 0, 0, 0,
481- SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
482-
483-- pti->cbSize = sizeof(TOOLINFOW_NEW);
484-+ pti->cbSize = sizeof(TOOLINFOW);
485- pti->uFlags = TTF_SUBCLASS;
486- pti->hwnd = beval->target;
487- pti->hinst = 0; // Don't use string resources
488-@@ -8681,7 +8439,7 @@ Handle_WM_Notify(HWND hwnd UNUSED, LPNMH
489- case TTN_GETDISPINFO:
490- {
491- // if you get there then we have new common controls
492-- NMTTDISPINFO_NEW *info = (NMTTDISPINFO_NEW *)pnmh;
493-+ NMTTDISPINFO *info = (NMTTDISPINFO *)pnmh;
494- info->lpszText = (LPSTR)info->lParam;
495- info->uFlags |= TTF_DI_SETITEM;
496- }
497-@@ -8689,7 +8447,7 @@ Handle_WM_Notify(HWND hwnd UNUSED, LPNMH
498- case TTN_GETDISPINFOW:
499- {
500- // if we get here then we have new common controls
501-- NMTTDISPINFOW_NEW *info = (NMTTDISPINFOW_NEW *)pnmh;
502-+ NMTTDISPINFOW *info = (NMTTDISPINFOW *)pnmh;
503- info->lpszText = (LPWSTR)info->lParam;
504- info->uFlags |= TTF_DI_SETITEM;
505- }
506-diff --git a/src/msvcsetup.bat b/src/msvcsetup.bat
507-deleted file mode 100644
508---- a/src/msvcsetup.bat
509-+++ /dev/null
510-@@ -1,12 +0,0 @@
511--rem To be used on MS-Windows when using the Visual C++ Toolkit 2003
512--rem See INSTALLpc.txt for information.
513--
514--set PATH=%SystemRoot%\Microsoft.NET\Framework\v1.1.4322;%PATH%
515--call "%VCToolkitInstallDir%vcvars32.bat"
516--set MSVCVer=7.1
517--
518--rem The platform SDK can be installed elsewhere, adjust the path.
519--call "%ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd"
520--rem call "e:\Microsoft Platform SDK\SetEnv.Cmd"
521--
522--set LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB%
523-diff --git a/src/os_win32.c b/src/os_win32.c
524---- a/src/os_win32.c
525-+++ b/src/os_win32.c
526-@@ -2690,13 +2690,6 @@ static HICON g_hOrigIcon = NULL;
527- static HICON g_hVimIcon = NULL;
528- static BOOL g_fCanChangeIcon = FALSE;
529-
530--// ICON* are not defined in VC++ 4.0
531--# ifndef ICON_SMALL
532--# define ICON_SMALL 0
533--# endif
534--# ifndef ICON_BIG
535--# define ICON_BIG 1
536--# endif
537- /*
538- * GetConsoleIcon()
539- * Description: