- compile fix for msvc 6 which doesn't declare M_PI at all it seems.
[blender.git] / intern / ghost / intern / GHOST_WindowWin32.cpp
index 8e0858b118390bad48824963f4b3f36deb1eb9d3..ac17338d66a96d10f9b827670679523aabb6f1d6 100644 (file)
 #include <GL/gl.h>
 #include <math.h>
 
+// MSVC6 still doesn't define M_PI
+#ifndef M_PI
+#define M_PI 3.1415926536
+#endif
+
 LPCSTR GHOST_WindowWin32::s_windowClassName = "GHOST_WindowClass";
 const int GHOST_WindowWin32::s_maxTitleLength = 128;
 HGLRC GHOST_WindowWin32::s_firsthGLRc = NULL;