2007-10-12 Tomas Frydrych <tf@o-hand.com>
authorTomas Frydrych <tf@openedhand.com>
Fri, 12 Oct 2007 10:02:28 +0000 (10:02 +0000)
committerTomas Frydrych <tf@openedhand.com>
Fri, 12 Oct 2007 10:02:28 +0000 (10:02 +0000)
* tests/test-actors.c:
When using MSVC, define _USE_MATH_DEFINES before including
math.h, otherwise constants like M_PI will not be defined.

ChangeLog
tests/test-actors.c

index 49042f5..b94cb32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-12  Tomas Frydrych  <tf@o-hand.com>
+
+       * tests/test-actors.c:
+       When using MSVC, define _USE_MATH_DEFINES before including
+       math.h, otherwise constants like M_PI will not be defined.
+
 2007-10-12  Emmanuele Bassi  <ebassi@openedhand.com>
 
        * clutter/clutter-script.c (construct_timline),
index 2037090..cf83fbd 100644 (file)
@@ -1,5 +1,9 @@
 #include <clutter/clutter.h>
 
+#if defined (_MSC_VER) && !defined (_USE_MATH_DEFINES)
+#define _USE_MATH_DEFINES
+#endif
+
 #include <math.h>
 #include <errno.h>
 #include <stdlib.h>