make visual studio 6 compile again
This commit is contained in:
@@ -292,7 +292,7 @@ void btSimulationIslandManager::buildAndProcessIslands(btDispatcher* dispatcher,
|
|||||||
|
|
||||||
|
|
||||||
//traverse the simulation islands, and call the solver, unless all objects are sleeping/deactivated
|
//traverse the simulation islands, and call the solver, unless all objects are sleeping/deactivated
|
||||||
for (int startIslandIndex=0;startIslandIndex<numElem;startIslandIndex = endIslandIndex)
|
for ( startIslandIndex=0;startIslandIndex<numElem;startIslandIndex = endIslandIndex)
|
||||||
{
|
{
|
||||||
int islandId = getUnionFind().getElement(startIslandIndex).m_id;
|
int islandId = getUnionFind().getElement(startIslandIndex).m_id;
|
||||||
|
|
||||||
|
|||||||
@@ -723,7 +723,7 @@ btScalar btSequentialImpulseConstraintSolver::solveGroupCacheFriendly(btCollisio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0;i<tmpSolverBodyPool.size();i++)
|
for ( i=0;i<tmpSolverBodyPool.size();i++)
|
||||||
{
|
{
|
||||||
tmpSolverBodyPool[i].writebackVelocity();
|
tmpSolverBodyPool[i].writebackVelocity();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ subject to the following restrictions:
|
|||||||
#include "btAlignedAllocator.h"
|
#include "btAlignedAllocator.h"
|
||||||
|
|
||||||
|
|
||||||
#if defined (WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
#if defined (BT_HAS_ALIGNED_ALOCATOR)
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
void* btAlignedAlloc (int size, int alignment)
|
void* btAlignedAlloc (int size, int alignment)
|
||||||
|
|||||||
@@ -36,11 +36,13 @@ class btAlignedAllocator {
|
|||||||
typedef btAlignedAllocator< T , Alignment > self_type;
|
typedef btAlignedAllocator< T , Alignment > self_type;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//just going down a list:
|
//just going down a list:
|
||||||
btAlignedAllocator() {}
|
btAlignedAllocator() {}
|
||||||
|
/*
|
||||||
btAlignedAllocator( const self_type & ) {}
|
btAlignedAllocator( const self_type & ) {}
|
||||||
|
*/
|
||||||
|
|
||||||
template < typename Other >
|
template < typename Other >
|
||||||
btAlignedAllocator( const btAlignedAllocator< Other , Alignment > & ) {}
|
btAlignedAllocator( const btAlignedAllocator< Other , Alignment > & ) {}
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,11 @@ subject to the following restrictions:
|
|||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
#if defined(__MINGW32__) || defined(__CYGWIN__) || (defined (_MSC_VER) && _MSC_VER < 1300)
|
||||||
#define SIMD_FORCE_INLINE inline
|
#define SIMD_FORCE_INLINE inline
|
||||||
#define ATTRIBUTE_ALIGNED16(a) a
|
#define ATTRIBUTE_ALIGNED16(a) a
|
||||||
#else
|
#else
|
||||||
|
#define BT_HAS_ALIGNED_ALOCATOR
|
||||||
#pragma warning(disable:4530)
|
#pragma warning(disable:4530)
|
||||||
#pragma warning(disable:4996)
|
#pragma warning(disable:4996)
|
||||||
#pragma warning(disable:4786)
|
#pragma warning(disable:4786)
|
||||||
|
|||||||
Reference in New Issue
Block a user