On 04-Apr-2016 6:08 AM, Bram Moolenaar wrote:
Patch 7.4.1705
Problem:    The 'guifont' option does not allow for a quality setting.
Solution:   Add the "q" item, supported on MS-Windows. (Yasuhiro Matsumoto)
Files:      runtime/doc/options.txt, src/gui_w32.c, src/os_mswin.c,
             src/proto/os_mswin.pro


Hi All.

This patch fails to build on Windows (mingw64):
...
gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DFEAT_GUI_W32 -DFEAT_CLIPBOAR D -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s gui_w32.c -o gobjnative/gui_w32.o
In file included from proto.h:43:0,
                 from vim.h:1947,
                 from os_mswin.c:16:
proto/os_mswin.pro:52:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ARGS'
 char *quality_id2name __ARGS((DWORD id));
                       ^
In file included from proto.h:43:0,
                 from vim.h:1947,
                 from version.c:10:
proto/os_mswin.pro:52:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ARGS'
 char *quality_id2name __ARGS((DWORD id));
                       ^
Make_cyg_ming.mak:849: recipe for target 'gobjnative/version.o' failed
make: *** [gobjnative/version.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from proto.h:43:0,
                 from vim.h:1947,
                 from gui_w32.c:26:
proto/os_mswin.pro:52:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ARGS'
 char *quality_id2name __ARGS((DWORD id));
                       ^
gui_w32.c: In function 'logfont2name':
gui_w32.c:3308:20: warning: implicit declaration of function 'quality_id2name' [-Wimplicit-function-declaration]
     quality_name = quality_id2name((int)lf.lfQuality);
                    ^
gui_w32.c:3308:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     quality_name = quality_id2name((int)lf.lfQuality);
                  ^
Make_cyg_ming.mak:865: recipe for target 'gobjnative/gui_w32.o' failed
make: *** [gobjnative/gui_w32.o] Error 1
Make_cyg_ming.mak:849: recipe for target 'gobjnative/os_mswin.o' failed
make: *** [gobjnative/os_mswin.o] Error 1
...

To fix it remove the reference to __ARGS from proto/os_mswin.pro (line 52).

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