[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36359] branches/blender2.4: fix for building with gcc4.6

Campbell Barton ideasman42 at gmail.com
Thu Apr 28 04:05:42 CEST 2011


Revision: 36359
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36359
Author:   campbellbarton
Date:     2011-04-28 02:05:41 +0000 (Thu, 28 Apr 2011)
Log Message:
-----------
fix for building with gcc4.6

Modified Paths:
--------------
    branches/blender2.4/intern/memutil/MEM_Allocator.h
    branches/blender2.4/source/gameengine/Expressions/KX_Python.h
    branches/blender2.4/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp

Modified: branches/blender2.4/intern/memutil/MEM_Allocator.h
===================================================================
--- branches/blender2.4/intern/memutil/MEM_Allocator.h	2011-04-27 17:23:37 UTC (rev 36358)
+++ branches/blender2.4/intern/memutil/MEM_Allocator.h	2011-04-28 02:05:41 UTC (rev 36359)
@@ -26,6 +26,7 @@
 
 #include "guardedalloc/MEM_guardedalloc.h"
 #include "guardedalloc/BLO_sys_types.h"
+#include <stddef.h>
 
 #ifdef _MSC_VER
 #if _MSC_VER < 1300 // 1200 == VC++ 6.0 according to boost

Modified: branches/blender2.4/source/gameengine/Expressions/KX_Python.h
===================================================================
--- branches/blender2.4/source/gameengine/Expressions/KX_Python.h	2011-04-27 17:23:37 UTC (rev 36358)
+++ branches/blender2.4/source/gameengine/Expressions/KX_Python.h	2011-04-28 02:05:41 UTC (rev 36359)
@@ -32,6 +32,8 @@
 //#define USE_DL_EXPORT
 #include "Python.h"
 
+#include <stddef.h> /* for python offsetof macros */
+
 #ifdef __FreeBSD__
 #include <osreldate.h>
 #if __FreeBSD_version > 500039

Modified: branches/blender2.4/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp
===================================================================
--- branches/blender2.4/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp	2011-04-27 17:23:37 UTC (rev 36358)
+++ branches/blender2.4/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp	2011-04-28 02:05:41 UTC (rev 36359)
@@ -29,6 +29,8 @@
 #include "DummyPhysicsEnvironment.h"
 #include "PHY_IMotionState.h"
 
+#include <stddef.h>
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif




More information about the Bf-blender-cvs mailing list