In the C runtime used by mingw compilers (msvcrt.dll) the printf function does not support the C99 format-width specifier "%ll". Defining __USE_MINGW_ANSI_STDIO enables mingw's ansi stdio extensions that implement a C99 compliant printf function.
Created attachment 80126 [details] [review] Use ansi stdio extensions when using a mingw compiler In the C runtime used by mingw compilers (msvcrt.dll) the printf function does not support the C99 format-width specifier "%ll". Defining __USE_MINGW_ANSI_STDIO enables mingw's ansi stdio extensions that implement a C99 compliant printf function.
Commited.
There's an identical copy of GCC_PRINTF_FORMAT in poppler/poppler-config.h.cmake Does it need to be patched too?
Created attachment 80182 [details] [review] Fix cmake build to use ansi stdio extensions when using a mingw compiler
(In reply to comment #3) > There's an identical copy of GCC_PRINTF_FORMAT in > poppler/poppler-config.h.cmake > Does it need to be patched too? Right! Thanks. Patch in attachment 80182 [details] [review].
Commited again, thanks to both of you guys
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.