[Bf-blender-cvs] [9a4df15] depsgraph_refactor: More mingw64 & c++11 math fixes
Joshua Leung
noreply at git.blender.org
Wed Dec 3 12:55:48 CET 2014
Commit: 9a4df15b6c1d8d7e51e8b599ebffb723fb748aae
Author: Joshua Leung
Date: Thu Dec 4 00:12:04 2014 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rB9a4df15b6c1d8d7e51e8b599ebffb723fb748aae
More mingw64 & c++11 math fixes
M_PI was undefined for some reason - probably one of the headers undefines it
or something. Nevertheless, this is the quickest fix to get this working
===================================================================
M intern/ghost/intern/GHOST_WindowWin32.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index 64ea719..615d822 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -49,6 +49,10 @@
#include <string.h>
#include <assert.h>
+/* XXX: mingw64 c++11 compile fix */
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
const wchar_t *GHOST_WindowWin32::s_windowClassName = L"GHOST_WindowClass";
More information about the Bf-blender-cvs
mailing list