From a15d9ca9ccfeebfcea148fc61ead3a70541e2a76 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Fri, 24 Jul 2009 20:33:25 +0100 Subject: Fix building of GLSL demos which use M_PI Some files do not define M_PI, in which case, provide our own definition Signed-off-by: Jon TURNEY --- progs/glsl/twoside.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'progs/glsl/twoside.c') diff --git a/progs/glsl/twoside.c b/progs/glsl/twoside.c index a57484f96c..ce155d64e9 100644 --- a/progs/glsl/twoside.c +++ b/progs/glsl/twoside.c @@ -16,6 +16,9 @@ #include #include "shaderutil.h" +#ifndef M_PI +#define M_PI 3.1415926535 +#endif static GLint WinWidth = 300, WinHeight = 300; static char *FragProgFile = NULL; -- cgit v1.2.3