[Mesa-dev] [PATCH] glsl / imports.h: fix MSVC build

Aras Pranckevicius aras at unity3d.com
Sun Aug 22 23:25:19 PDT 2010


Attached patch fixes MSVC (2008) build. MSVC was still missing truncf,
exp2f, log2f (all used in GLSL2).

MSVC does not have trunc(), so defining truncf() to trunc() does not quite
work. The _XOPEN_SOURCE usage looked pretty weird as well; it made whole
that block not be included if the define is not there at all.

Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100823/62e6eb3b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glsl-fix-msvc-build.patch
Type: application/octet-stream
Size: 1427 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100823/62e6eb3b/attachment.obj>

More information about the mesa-dev mailing list