This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

w32api-headers update?


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.

Thanks.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]