summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-06-21 18:11:58 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-06-24 14:13:09 +0200
commit33403cfb378de03a2cff707b4b1cc16025378822 (patch)
tree8d6aae6e5b6c3d9274df2a87036ec8f64a80290c
parent5291f7ccad54b587bd1bee3a89426cf1d158c5bb (diff)
perf: Ensure M_SQRT2 is defined
pythagoras-tree uses M_SQRT2, which on Win32 is defined by math.h if and only if _USE_MATH_DEFINES is defined.
-rw-r--r--perf/micro/pythagoras-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/perf/micro/pythagoras-tree.c b/perf/micro/pythagoras-tree.c
index 964d5c12..3da45698 100644
--- a/perf/micro/pythagoras-tree.c
+++ b/perf/micro/pythagoras-tree.c
@@ -24,6 +24,7 @@
*/
#include "cairo-perf.h"
+#define _USE_MATH_DEFINES /* for M_SQRT2 on win32 */
#include <math.h>
static void