mesa/st/st_glsl_to_tgsi_temprename.cpp: Fix compilation with MSVC
authorGert Wollny <gw.fossdev@gmail.com>
Wed, 6 Sep 2017 12:21:25 +0000 (14:21 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Sep 2017 13:12:19 +0000 (15:12 +0200)
commit107ecd97f1b978599daf689db68a40c5f9dcd025
treead2a6b1d505225e12e98a0ac7e8550e167cead26
parent09ffe274b050c3433996c0ee2f773e9d107a3fa6
mesa/st/st_glsl_to_tgsi_temprename.cpp: Fix compilation with MSVC

If <windows.h> is included then max is a macro that clashes
with std::numeric_limits::max, hence undefine it.
For some reason the struct access_record is not recognizes
outside the anonymouse namespace, make it a class.
The patch successfully was tested on AppVeyor.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp