From 419741442d016689ff602d553fd53df8be9433e4 Mon Sep 17 00:00:00 2001 From: manuelk Date: Tue, 11 Dec 2012 13:50:27 -0800 Subject: [PATCH] defining M_PI to fix some compiler errors on OSX 10.8 fixes #44 --- opensubdiv/osd/clKernel.cl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opensubdiv/osd/clKernel.cl b/opensubdiv/osd/clKernel.cl index 645e93fd..98931723 100644 --- a/opensubdiv/osd/clKernel.cl +++ b/opensubdiv/osd/clKernel.cl @@ -55,6 +55,10 @@ // a particular purpose and non-infringement. // +#ifndef M_PI + #define M_PI 3.14159265358979323846 // fix for OSX 10.8 (M_PI is in the Khronos standard...) +#endif + struct Vertex { float v[NUM_VERTEX_ELEMENTS];