aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/tessellator.cpp5
1 files changed, 4 insertions, 1 deletions
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 <math.h> // ceil
+#if defined(_WIN32) || defined(_WIN64)
+#include <math.h> // ceil
+#else
#include <cmath>
+#endif
//#include <windows.h> // Just used for some commented out debug stat printing.
//#include <strsafe.h> // Ditto.
#define min(x,y) (x < y ? x : y)