On 26/06/2011 05:46, John Beckett wrote:
In case it is not known (I am not complaining), note that
compiling gvim on Windows with the old MSVC 6.0 gives an error
for gui_w32.c since 'HandleToLong' is undefined. HandleToLong
was introduced in patch 7.3.206.

Ah, these macros came in with compilers that supported 64 bit builds, I guess pre VC8. Try the following:

diff --git a/src/gui_w32.c b/src/gui_w32.c
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -1574,6 +1574,11 @@ gui_mch_init(void)
 #endif

 #ifdef FEAT_EVAL
+
+#if _MSC_VER < 1400
+/* HandleTolong only exists in compilers that can do 64 bit builds */
+#define HandleToLong(h) ((long)(h))
+#endif
     /* set the v:windowid variable */
     set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd));
 #endif

TTFN

Mike
--
Money talks, but having lots of it gets more attention.

--
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

Raspunde prin e-mail lui