aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-22 18:26:47 +0100
committerThomas White <taw@physics.org>2010-02-22 18:26:47 +0100
commitcf5248059508ace98f1f084a1a1fbc39700b836b (patch)
treee7b6416e0a4dd364c016e2f262b3204155f73d04
parentb024c40bc2ce1167697d008ce95243bed70be367 (diff)
Define M_PI only if it's not already defined
-rw-r--r--data/diffraction.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/diffraction.cl b/data/diffraction.cl
index c3a0e637..d3fef375 100644
--- a/data/diffraction.cl
+++ b/data/diffraction.cl
@@ -11,7 +11,9 @@
#include <defs.h>
+#ifndef M_PI
#define M_PI ((float)(3.14159265))
+#endif
float4 quat_rot(float4 q, float4 z)
{