Compiling poppler fails with the mingw64 compiler using the latest mingw64 header files from vcs. The cause for this is that these header files define time_t depending on (among others) the definition of _FILE_OFFSET_BITS, which is defined in config.h. Now, config.h is included in poppler-attachment.cc, but not in poppler-document.cc and poppler-annot.cc, causing a mismatch in the time_t definition. Including config.h in poppler-document.cc and poppler-annot.cc fixes this. Patch will follow.
Created attachment 56333 [details] [review] 0001-Fix-build-with-latest-mingw-w64-headers.patch
Forgot to mention: this is for compiling using the mingw64 compiler but having win32 as the target, not win64.
Pushed
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.