[poppler] compilation error with mingw-w64
Hib Eris
hib at hiberis.nl
Sun Oct 31 06:15:48 PDT 2010
Hi,
On Sun, Oct 31, 2010 at 2:05 PM, Vincent Torri <vtorri at univ-evry.fr> wrote:
>
> Hey,
>
> I have mentioned the problem on IRC must maybe it's better to report here.
> On Windows 64 bits, long is of size 32 bits long. Hence:
>
> strtok_r.cpp:68:29: error: cast from 'const unsigned char*' to 'long
> unsigned int' loses precision
>
> Using unsigned long long int is maybe better. Or using unsigned __int64.
A better approach is the patch I have attached here. It is pretty much
based on the strtok_r implementation from upstream.
Cheers,
Hib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-win32-Simplify-strtok_r-implementation.patch
Type: text/x-patch
Size: 5227 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20101031/a1c59200/attachment.bin>
More information about the poppler
mailing list