summaryrefslogtreecommitdiff
path: root/progs/egl/opengl/eglgears.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/opengl/eglgears.c')
-rw-r--r--progs/egl/opengl/eglgears.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/egl/opengl/eglgears.c b/progs/egl/opengl/eglgears.c
index 28da9c0ac7..430deb26e5 100644
--- a/progs/egl/opengl/eglgears.c
+++ b/progs/egl/opengl/eglgears.c
@@ -33,6 +33,10 @@
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
static GLfloat view_rotx = 20.0, view_roty = 30.0, view_rotz = 0.0;
static GLint gear1, gear2, gear3;
static GLfloat angle = 0.0;