Summary: |
[patch] shlobj.h is missing #defines without including windows.h first |
Product: |
poppler
|
Reporter: |
Michael Henning <drawoc> |
Component: |
general | Assignee: |
poppler-bugs <poppler-bugs> |
Status: |
RESOLVED
MOVED
|
QA Contact: |
|
Severity: |
normal
|
|
|
Priority: |
medium
|
|
|
Version: |
unspecified | |
|
Hardware: |
Other | |
|
OS: |
Windows (All) | |
|
Whiteboard: |
|
i915 platform:
|
|
i915 features:
|
|
Attachments: |
Patch to fix including shlobj.h
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 117232 [details] 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.