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.
(This happens with poppler 0.34.0)
Maybe what you want is telling the mingw people to fix their includes?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/320.
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.