[Mesa-dev] [PATCH] glsl / imports.h: fix MSVC build
Chia-I Wu
olvaffe at gmail.com
Sun Aug 22 23:40:25 PDT 2010
On Mon, Aug 23, 2010 at 2:25 PM, Aras Pranckevicius <aras at unity3d.com> wrote:
> Hi,
> 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.
Not that familiar with MSVC, but when I built Mesa on Windows the other day,
other than the defines introduced by this patch, these functions were also
missing: snprintf, strtoll, and isblank. Is it me or the patch that misses
something?
--
olv at LunarG.com
More information about the mesa-dev
mailing list