summaryrefslogtreecommitdiff
path: root/progs/glsl/twoside.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/glsl/twoside.c')
-rw-r--r--progs/glsl/twoside.c3
1 files changed, 3 insertions, 0 deletions
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 <GL/glut.h>
#include "shaderutil.h"
+#ifndef M_PI
+#define M_PI 3.1415926535
+#endif
static GLint WinWidth = 300, WinHeight = 300;
static char *FragProgFile = NULL;