Ken Takata wrote:

> Hi John,
> 
> 2016/7/10 Sun 6:52:04 UTC+9 John Marriott wrote:
> > On 27-Jun-2016 4:38 AM, Bram Moolenaar wrote:
> > > Patch 7.4.1963
> > > Problem:    Running Win32 Vim in mintty does not work.
> > > Solution:   Detect mintty and give a helpful error message. (Ken Takata)
> > > Files:      src/Make_cyg_ming.mak, src/Make_mvc.mak, src/iscygpty.c,
> > >              src/iscygpty.h, src/main.c, Filelist
> > >
> > >
> > 
> > This patches generates this warning from mingw (both 32 and 64 bit):
> > gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> > -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -pipe -march=n
> > ative -Wall -O3 -fomit-frame-pointer -freg-struct-return -s iscygpty.c 
> > -o objnative/iscygpty.o -D_WIN32_WINNT=0x0600 -DU
> > SE_DYNFILEID -DENABLE_STUB_IMPL
> > <command-line>:0:0: warning: "_WIN32_WINNT" redefined
> > <command-line>:0:0: note: this is the location of the previous definition
> > 
> > This is the relevant line in the makefile (line 896):
> > $(CC) -c $(CFLAGS) iscygpty.c -o $(OUTDIR)/iscygpty.o 
> > -D_WIN32_WINNT=0x0600 -DUSE_DYNFILEID -DENABLE_STUB_IMPL
> > 
> > CFLAGS defines _WIN32_WINNT to be equal to $(WINVER) (line 381). 
> > Dropping -D_WIN32_WINNT=0x0600 from the line in the makefile removes the 
> > warning for me.
> 
> I wanted to override the default value of _WIN32_WINNT (0x0501) with 0x0600
> (or higher) when compiling iscygpty.c. So -U_WIN32_WINNT should be inserted
> instead of dropping -D_WIN32_WINNT=0x0600.

Thanks!

-- 
Place mark here ->[ ]<- if you want a dirty monitor.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui