From 22d97b2e346e3cb3fc38704a0460e2dd4d9a0abb Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Sun, 12 Nov 2006 17:23:26 +0000 Subject: [PATCH] - compile fix for msvc 6 which doesn't declare M_PI at all it seems. --- intern/ghost/intern/GHOST_WindowWin32.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 8e0858b1183..ac17338d66a 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -46,6 +46,11 @@ #include #include +// 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; -- 2.28.0