Commit b3266434 by Dan Ginsburg

Fix a compile error on VS2013 when including from a project that includes…

Fix a compile error on VS2013 when including from a project that includes windows.h and does not define NOMINMAX (http://stackoverflow.com/questions/2789481/problem-calling-stdmax) 1>h:\dev\source2\main\src\thirdparty\glslang\glslang\include\intermediate.h(908): error C2589: '(' : illegal token on right side of '::' (vulkan\renderdevicevulkan.cpp) 1>h:\dev\source2\main\src\thirdparty\glslang\glslang\include\intermediate.h(908): error C2059: syntax error : '::' (vulkan\renderdevicevulkan.cpp)
parent b9fc6c3b
......@@ -905,7 +905,7 @@ public:
void incrementDepth(TIntermNode *current)
{
depth++;
maxDepth = std::max(maxDepth, depth);
maxDepth = (std::max)(maxDepth, depth);
path.push_back(current);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment