progs/egl: Fix building on cygwin.
[mesa.git] / progs / egl / opengl / eglgears.c
index 28da9c0ac740c9f86ca5bfc6617d8d83a2e9c933..430deb26e5e1a9b5e3d4268ed11801ee1062f73e 100644 (file)
 
 #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;