[Poppler-bugs] [Bug 54851] Fix for the build using mingw64

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 14 00:08:04 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54851

--- Comment #3 from niXman <i.nixman at gmail.com> 2012-09-14 07:08:04 UTC ---

> When build poppler with mingw64 Ń‚eed to check whether there is a winpthreads
> definition because it include strtok_r declaration.

More information: strtok_r in winpthread is declared as a macro, that is why
the error happens. Therefore, it is necessary to check whether the macro
__WINPTHREADS_VERSION is declared. If so, it is necessary to undefine the
strtok_r macro.

Also, it is possible not to use the declaration/implementation of the strtok_r
function provided by poppler, and use the strtok_r macro provided by
winpthread. But here I'm not sure how it would be better...

P.S.
This error occurs only when using the MinGW compiled with
'--enable-threads=posix', for example, produced as part of MinGW-builds
project: https://sourceforge.net/projects/mingwbuilds/

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list