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.
This commit is contained in:
Tomas Frydrych 2007-10-12 10:02:28 +00:00
parent abc529aaec
commit d9d10f4704
2 changed files with 10 additions and 0 deletions

View File

@ -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),

View 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>