w32api-headers update?

JonY 10walls@gmail.com
Sun Jul 19 03:38:00 GMT 2015


On 7/18/2015 03:14, Ken Brown wrote:
> JonY,
> 
> Could we get an update of w32api-headers?  There's a bug in shlobj.h, as
> illustrated by the following:
> 
> $ cat test.c
> #include <shlobj.h>
> 
> $ gcc -c test.c
> In file included from test.c:1:0:
> /usr/include/w32api/shlobj.h:37:3: error: unknown type name ‘EXTERN_C’
>    SHFOLDERAPI SHGetFolderPathW (HWND hwnd, int csidl, HANDLE hToken,
> DWORD dwFlags, LPWSTR pszPath);
>    ^
> /usr/include/w32api/shlobj.h:37:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
> or ‘__attribute__’ before ‘HRESULT’
>    SHFOLDERAPI SHGetFolderPathW (HWND hwnd, int csidl, HANDLE hToken,
> DWORD dwFlags, LPWSTR pszPath);
>    ^
> /usr/include/w32api/shlobj.h:37:3: error: unknown type name ‘HRESULT’
> 
> This can be fixed by moving the declaration of SHGetFolderPathW lower in
> the file, near the declaration of SHGetFolderPathA.
> 
> A google search suggests that this has already been reported upstream as
> MinGW-w64 bug 476, but SourceForge is down at the moment, so I can't
> actually look at that bug report.
> 

Noted, will wait another few days for SF to come up. If not, we'll need
to point the cygport build to another mirror.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150719/f0bd3463/attachment.sig>


More information about the Cygwin mailing list