[Mesa-dev] [PATCH] glsl: rename min(), max() functions to fix MSVC build

Erik Faye-Lund kusmabite at gmail.com
Mon Jan 6 16:22:21 PST 2014


On Tue, Jan 7, 2014 at 12:12 AM, Brian Paul <brianp at vmware.com> wrote:
> Evidently, there's some other definition of "min" and "max" that
> causes MSVC to choke on these function names.  Renaming to min2()
> and max2() fixes things.

Wouldn't it be easier to just make sure NOMINMAX is defined before
including any system-headers?


More information about the mesa-dev mailing list