[patch] shlobj.h is missing #defines without including windows.h first
Submitted by Michael Henning
Assigned to poppler-bugs
Description
Created attachment 117232 Patch to fix including shlobj.h
When cross-compiling poppler for windows using mingw, I get the following error:
In file included from GlobalParams.cc:59:0: /usr/i686-w64-mingw32/include/shlobj.h:37:3: error: 'EXTERN_C' does not name a type SHFOLDERAPI SHGetFolderPathW (HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath); ^
It seems that simply including windows.h before shlobj.h pulls in the necessary definitions for shlobj.h and fixes this issue. See attached patch.
Attachment 117232, "Patch to fix including shlobj.h":
poppler-windows-h.patch