summaryrefslogtreecommitdiffstats
path: root/progs/glsl/texaaline.c
diff options
context:
space:
mode:
authorJon TURNEY <[email protected]>2009-07-24 20:33:25 +0100
committerBrian Paul <[email protected]>2009-10-05 11:07:23 -0600
commita15d9ca9ccfeebfcea148fc61ead3a70541e2a76 (patch)
treebf5007c8f39983018309b100b14df2dad5a0bcbe /progs/glsl/texaaline.c
parent43750f1575e366e2a92b71bffceee90d7f1a2b3e (diff)
Fix building of GLSL demos which use M_PI
Some <math.h> files do not define M_PI, in which case, provide our own definition Signed-off-by: Jon TURNEY <[email protected]>
Diffstat (limited to 'progs/glsl/texaaline.c')
-rw-r--r--progs/glsl/texaaline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/glsl/texaaline.c b/progs/glsl/texaaline.c
index 7a5ac405bba..2e4f932ad60 100644
--- a/progs/glsl/texaaline.c
+++ b/progs/glsl/texaaline.c
@@ -14,6 +14,9 @@
#include <GL/glew.h>
#include <GL/glut.h>
+#ifndef M_PI
+#define M_PI 3.1415926535
+#endif
static GLint WinWidth = 300, WinHeight = 300;
static GLint win = 0;