Hi,
I noticed that normal/small/tiny Vim cannot be compiled with MSVC.
Patch below fixes this as well as warnings about unused local variables p and c:
-----------------------------
diff -r 6ca6a42b3cc7 src/os_win32.c
--- a/src/os_win32.c Fri Aug 26 16:13:00 2011 +0200
+++ b/src/os_win32.c Sat Aug 27 08:41:24 2011 +0400
@@ -3419,8 +3419,10 @@
{
DWORD availableBytes = 0;
DWORD i;
+# ifdef FEAT_MBYTE
int c;
char_u *p;
+#endif
int ret;
DWORD len;
DWORD toRead;
@@ -3558,9 +3560,7 @@
int noread_cnt = 0;
garray_T ga;
int delay = 1;
-# ifdef FEAT_MBYTE
DWORD buffer_off = 0; /* valid bytes in buffer[] */
-# endif
SECURITY_ATTRIBUTES saAttr;
-----------------------------
--
Sergey Khorev
http://sites.google.com/site/khorser
Can anybody think of a good tagline I can steal?
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php