From bd5077ae1dfaa1f5652a7a1febfcc0f27b030823 Mon Sep 17 00:00:00 2001 From: Jan Zielinski Date: Thu, 12 Dec 2019 14:07:20 +0100 Subject: [PATCH] gallium/swr: Fix Windows build Tessellator defines own fmin/fmax functions that conflict with those defined in cmath header. Need to use legacy math.h which was originally used in MS code. Reviewed-by: Krzysztof Raszkowski --- src/gallium/drivers/swr/rasterizer/core/tessellator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp b/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp index 6e12b691037..e0464c360fa 100644 --- a/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp @@ -18,8 +18,11 @@ */ #include "tessellator.hpp" -// #include // ceil +#if defined(_WIN32) || defined(_WIN64) +#include // ceil +#else #include +#endif //#include // Just used for some commented out debug stat printing. //#include // Ditto. #define min(x,y) (x < y ? x : y) -- 2.30.2