- compile fix for msvc 6 which doesn't declare M_PI at all it seems.
authorAndrea Weikert <elubie@gmx.net>
Sun, 12 Nov 2006 17:23:26 +0000 (17:23 +0000)
committerAndrea Weikert <elubie@gmx.net>
Sun, 12 Nov 2006 17:23:26 +0000 (17:23 +0000)
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;