2 Subject: Patch 6.2.090 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: MingW compiler complains about #pragmas. (Bill McCarthy)
12 Solution: Put an #ifdef around the #pragmas.
16 *** ../vim-6.2.089/src/os_win32.c Sun Jul 27 14:29:34 2003
17 --- src/os_win32.c Fri Sep 5 22:52:38 2003
23 // The ToAscii bug destroys several registers. Need to turn off optimization
24 // or the GetConsoleKeyboardLayoutName hack will fail in non-debug versions
26 ! #pragma optimize("", off)
28 #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
29 # define AChar AsciiChar
35 // The ToAscii bug destroys several registers. Need to turn off optimization
36 // or the GetConsoleKeyboardLayoutName hack will fail in non-debug versions
37 ! # pragma optimize("", off)
40 #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
41 # define AChar AsciiChar
47 /* MUST switch optimization on again here, otherwise a call to
48 * decode_key_event() may crash (e.g. when hitting caps-lock) */
49 ! #pragma optimize("", on)
51 ! #if (_MSC_VER < 1100)
52 /* MUST turn off global optimisation for this next function, or
53 * pressing ctrl-minus in insert mode crashes Vim when built with
55 ! #pragma optimize("g", off)
58 static BOOL g_fJustGotFocus = FALSE;
64 /* MUST switch optimization on again here, otherwise a call to
65 * decode_key_event() may crash (e.g. when hitting caps-lock) */
66 ! # pragma optimize("", on)
68 ! # if (_MSC_VER < 1100)
69 /* MUST turn off global optimisation for this next function, or
70 * pressing ctrl-minus in insert mode crashes Vim when built with
72 ! # pragma optimize("g", off)
76 static BOOL g_fJustGotFocus = FALSE;
82 ! #pragma optimize("", on)
83 #endif /* FEAT_GUI_W32 */
92 ! # pragma optimize("", on)
95 #endif /* FEAT_GUI_W32 */
98 *** ../vim-6.2.089/src/version.c Thu Sep 11 21:46:06 2003
99 --- src/version.c Thu Sep 11 21:48:24 2003
103 { /* Add new patch number below this line */
109 Zen Microsystems: we're the om in .commmmmmmmm
111 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
112 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
113 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
114 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///