svn commit: r332479 - head/devel/bullet/files

John Marino marino at FreeBSD.org
Sat Nov 2 13:11:21 UTC 2013


Author: marino
Date: Sat Nov  2 13:11:21 2013
New Revision: 332479
URL: http://svnweb.freebsd.org/changeset/ports/332479

Log:
  devel/bullets: Fix C++ errors seen on some versions of gcc
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h   (contents, props changed)

Added: head/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h	Sat Nov  2 13:11:21 2013	(r332479)
@@ -0,0 +1,20 @@
+--- src/BulletSoftBody/btSoftBodyInternals.h.orig	2009-08-31 04:35:06.000000000 +0000
++++ src/BulletSoftBody/btSoftBodyInternals.h
+@@ -25,6 +25,7 @@ subject to the following restrictions:
+ #include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h"
+ #include "BulletCollision/CollisionShapes/btConvexInternalShape.h"
+ #include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h"
++#include <string.h>
+ 
+ //
+ // btSymMatrix
+@@ -172,8 +173,7 @@ public:
+ template <typename T>
+ static inline void			ZeroInitialize(T& value)
+ {
+-	static const T	zerodummy;
+-	value=zerodummy;
++	memset(&value, 0, sizeof(T));
+ }
+ //
+ template <typename T>


More information about the svn-ports-head mailing list