aboutsummaryrefslogtreecommitdiffstats
path: root/progs/egl/opengles1/torus.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/opengles1/torus.c')
-rw-r--r--progs/egl/opengles1/torus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/egl/opengles1/torus.c b/progs/egl/opengles1/torus.c
index 8f262b53d6c..18ddff3fe4a 100644
--- a/progs/egl/opengles1/torus.c
+++ b/progs/egl/opengles1/torus.c
@@ -17,6 +17,10 @@
#include "eglut.h"
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
static const struct {
GLenum internalFormat;
const char *name;