summaryrefslogtreecommitdiff
blob: 195ca0c24b9940dc5ef83c136377be10454fab68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
http://bugs.gentoo.org/452694

--- extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h
+++ extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h
@@ -18,6 +18,7 @@
 #define _BT_SOFT_BODY_INTERNALS_H
 
 #include "btSoftBody.h"
+#include <string.h>
 
 #include "LinearMath/btQuickprof.h"
 #include "BulletCollision/BroadphaseCollision/btBroadphaseInterface.h"
@@ -171,8 +172,7 @@
 template <typename T>
 static inline void			ZeroInitialize(T& value)
 {
-	static const T	zerodummy;
-	value=zerodummy;
+	memset(&value,0,sizeof(T));
 }
 //
 template <typename T>
--- intern/memutil/MEM_Allocator.h
+++ intern/memutil/MEM_Allocator.h
@@ -24,6 +24,7 @@
 #ifndef __MEM_Allocator_h_included__
 #define __MEM_Allocator_h_included__ 1
 
+#include <cstddef>
 #include "guardedalloc/MEM_guardedalloc.h"
 #include "guardedalloc/BLO_sys_types.h"