diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-05-18 10:22:57 -0600 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-05-19 13:39:40 -0600 |
commit | 70ae8bf26fbbac58900237b815ce86c01d09eb96 (patch) | |
tree | aa35665ba6d858e693c5daa5301215ed9f14279d /progs/egl/opengles1/torus.c | |
parent | bc73a6289f5e28636d579e17e8a8d70a2d8d7500 (diff) |
progs/egl: Fix building on cygwin.
Update the Makefiles to use variables such as EGL_LIB_NAME. Define M_PI
if it hasn't been defined yet.
Diffstat (limited to 'progs/egl/opengles1/torus.c')
-rw-r--r-- | progs/egl/opengles1/torus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/egl/opengles1/torus.c b/progs/egl/opengles1/torus.c index 8f262b53d6..18ddff3fe4 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; |