mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-10 17:30:12 +00:00
+ add dummy getcwd/getenv for PS3 compatibility
+ disable HAVE_SIGNAL_H 0 for LibXML + removed unused variable in btCollisionWorld + removed unused variable in btSequentialImpulseConstraintSolver
This commit is contained in:
parent
3ca977e39f
commit
9cd83c004b
@ -46,7 +46,19 @@ subject to the following restrictions:
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __CELLOS_LV2__
|
||||
//provide some dummy stubs for getcwd and getenv on PS3
|
||||
extern "C" {
|
||||
int getcwd(char* dir, int maxlen)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
int getenv(int bla)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
struct btRigidBodyInput
|
||||
|
@ -779,7 +779,6 @@ static void setupLinearConstraintWorld (SpuSolverConstraint& constraint, const b
|
||||
|
||||
|
||||
|
||||
|
||||
static int getConstraintSize (btTypedConstraintType type)
|
||||
{
|
||||
switch (type)
|
||||
|
@ -149,7 +149,7 @@
|
||||
/* #undef HAVE_SIGNAL */
|
||||
|
||||
/* Define to 1 if you have the <signal.h> header file. */
|
||||
#define HAVE_SIGNAL_H 1
|
||||
//#define HAVE_SIGNAL_H 0
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
@ -147,10 +147,10 @@
|
||||
/* #undef HAVE_SHLLOAD */
|
||||
|
||||
/* Define to 1 if you have the `signal' function. */
|
||||
#define HAVE_SIGNAL 1
|
||||
//#define HAVE_SIGNAL 1
|
||||
|
||||
/* Define to 1 if you have the <signal.h> header file. */
|
||||
#define HAVE_SIGNAL_H 1
|
||||
//#define HAVE_SIGNAL_H 1
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
@ -147,10 +147,10 @@
|
||||
/* #undef HAVE_SHLLOAD */
|
||||
|
||||
/* Define to 1 if you have the `signal' function. */
|
||||
#define HAVE_SIGNAL 1
|
||||
//#define HAVE_SIGNAL 1
|
||||
|
||||
/* Define to 1 if you have the <signal.h> header file. */
|
||||
#define HAVE_SIGNAL_H 1
|
||||
//#define HAVE_SIGNAL_H 1
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
@ -407,8 +407,6 @@ void btCollisionWorld::objectQuerySingle(const btConvexShape* castShape,const bt
|
||||
btVoronoiSimplexSolver simplexSolver;
|
||||
btGjkEpaPenetrationDepthSolver gjkEpaPenetrationSolver;
|
||||
|
||||
bool result = false;
|
||||
|
||||
btContinuousConvexCollision convexCaster1(castShape,convexShape,&simplexSolver,&gjkEpaPenetrationSolver);
|
||||
//btGjkConvexCast convexCaster2(castShape,convexShape,&simplexSolver);
|
||||
//btSubsimplexConvexCast convexCaster3(castShape,convexShape,&simplexSolver);
|
||||
|
@ -245,7 +245,6 @@ btScalar resolveSingleCollisionCombinedCacheFriendly(
|
||||
(void)solverInfo;
|
||||
|
||||
btScalar normalImpulse;
|
||||
bool useSplitImpulse = false;
|
||||
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user