[Pixman] 'SIZE_MAX' undeclared on Solaris 9 without including <limits.h>, sqrtf() missing
Søren Sandmann
sandmann at cs.au.dk
Tue Apr 2 03:49:41 PDT 2013
Mojca Miklavec <mojca.miklavec.lists at gmail.com> writes:
> We are using pixman in TeX (TeX Live) and on Solaris there are two
> tiny problems that prevent compilation on Solaris 9:
>
> 1.) ../../../source/libs/pixman/pixman-0.28.0/pixman/pixman-utils.c:36:17:
> error: 'SIZE_MAX' undeclared (first use in this function)
The SIZE_MAX issue is fixed in master already I believe.
> 2.) "sqrtf" function is missing, see also:
>
> http://www.gnu.org/software/gnulib/manual/html_node/sqrtf.html
> http://www.winehq.org/pipermail/wine-patches/2003-February/005427.html
>
> One can use double sqrt(...) instead, but again, I'm not sure what the
> best patch should be.
Can't you just check for it in configure and if it doesn't exist, define
a macro in pixman-compiler.h that defines it to sqrt?
Søren
More information about the Pixman
mailing list