summaryrefslogtreecommitdiffstats
path: root/progs/egl/opengles2/es2gears.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/opengles2/es2gears.c')
-rw-r--r--progs/egl/opengles2/es2gears.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/egl/opengles2/es2gears.c b/progs/egl/opengles2/es2gears.c
index 8e7a3e52490..6bd6594320a 100644
--- a/progs/egl/opengles2/es2gears.c
+++ b/progs/egl/opengles2/es2gears.c
@@ -46,6 +46,10 @@
#include <EGL/eglext.h>
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
struct gear {
GLfloat *vertices;
GLuint vbo;