---
 include/c99_math.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/c99_math.h b/include/c99_math.h
index 5d4f535..bec80e1 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -38,6 +38,12 @@
 #include "c99_compat.h"
 
 
+/* This is to ensure that we get M_PI, etc. definitions */
+#if defined(_MSC_VER) && !defined(_USE_MATH_DEFINES)
+#error _USE_MATH_DEFINES define required when building with MSVC
+#endif 
+
+
 #if defined(_MSC_VER)
 
 #if _MSC_VER < 1800
-- 
1.9.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to