add the BT_ prefix for all #ifdef guards, to avoid conflicts with developers own header defines.

Fixes Issue 497

//license header
#ifndef BT_RIGIDBODY_H
#define BT_RIGIDBODY_H
class btRigidBody
{
};
#endif //BT_RIGIDBODY_H
This commit is contained in:
erwin.coumans
2011-04-01 17:14:52 +00:00
parent b1f21a7e6a
commit 852fa3ba30
139 changed files with 460 additions and 412 deletions

View File

@@ -14,8 +14,8 @@ subject to the following restrictions:
*/
#ifndef CONTINUOUS_COLLISION_CONVEX_CAST_H
#define CONTINUOUS_COLLISION_CONVEX_CAST_H
#ifndef BT_CONTINUOUS_COLLISION_CONVEX_CAST_H
#define BT_CONTINUOUS_COLLISION_CONVEX_CAST_H
#include "btConvexCast.h"
#include "btSimplexSolverInterface.h"
@@ -55,5 +55,5 @@ public:
};
#endif //CONTINUOUS_COLLISION_CONVEX_CAST_H
#endif //BT_CONTINUOUS_COLLISION_CONVEX_CAST_H

View File

@@ -14,8 +14,8 @@ subject to the following restrictions:
*/
#ifndef CONVEX_CAST_H
#define CONVEX_CAST_H
#ifndef BT_CONVEX_CAST_H
#define BT_CONVEX_CAST_H
#include "LinearMath/btTransform.h"
#include "LinearMath/btVector3.h"
@@ -70,4 +70,4 @@ public:
CastResult& result) = 0;
};
#endif //CONVEX_CAST_H
#endif //BT_CONVEX_CAST_H

View File

@@ -14,8 +14,8 @@ subject to the following restrictions:
*/
#ifndef __CONVEX_PENETRATION_DEPTH_H
#define __CONVEX_PENETRATION_DEPTH_H
#ifndef BT_CONVEX_PENETRATION_DEPTH_H
#define BT_CONVEX_PENETRATION_DEPTH_H
class btStackAlloc;
class btVector3;
@@ -38,5 +38,5 @@ public:
};
#endif //CONVEX_PENETRATION_DEPTH_H
#endif //BT_CONVEX_PENETRATION_DEPTH_H

View File

@@ -14,8 +14,9 @@ subject to the following restrictions:
*/
#ifndef DISCRETE_COLLISION_DETECTOR1_INTERFACE_H
#define DISCRETE_COLLISION_DETECTOR1_INTERFACE_H
#ifndef BT_DISCRETE_COLLISION_DETECTOR1_INTERFACE_H
#define BT_DISCRETE_COLLISION_DETECTOR1_INTERFACE_H
#include "LinearMath/btTransform.h"
#include "LinearMath/btVector3.h"
class btStackAlloc;
@@ -86,4 +87,5 @@ struct btStorageResult : public btDiscreteCollisionDetectorInterface::Result
}
};
#endif //DISCRETE_COLLISION_DETECTOR_INTERFACE1_H
#endif //BT_DISCRETE_COLLISION_DETECTOR1_INTERFACE_H

View File

@@ -15,8 +15,8 @@ subject to the following restrictions:
#ifndef GJK_CONVEX_CAST_H
#define GJK_CONVEX_CAST_H
#ifndef BT_GJK_CONVEX_CAST_H
#define BT_GJK_CONVEX_CAST_H
#include "BulletCollision/CollisionShapes/btCollisionMargin.h"
@@ -47,4 +47,4 @@ public:
};
#endif //GJK_CONVEX_CAST_H
#endif //BT_GJK_CONVEX_CAST_H

View File

@@ -22,8 +22,9 @@ misrepresented as being the original software.
/*
GJK-EPA collision solver by Nathanael Presson, 2008
*/
#ifndef _68DA1F85_90B7_4bb0_A705_83B4040A75C6_
#define _68DA1F85_90B7_4bb0_A705_83B4040A75C6_
#ifndef BT_GJK_EPA2_H
#define BT_GJK_EPA2_H
#include "BulletCollision/CollisionShapes/btConvexShape.h"
///btGjkEpaSolver contributed under zlib by Nathanael Presson
@@ -70,4 +71,5 @@ static bool SignedDistance( const btConvexShape* shape0,const btTransform& wtrs
};
#endif
#endif //BT_GJK_EPA2_H

View File

@@ -16,8 +16,8 @@ subject to the following restrictions:
#ifndef GJK_PAIR_DETECTOR_H
#define GJK_PAIR_DETECTOR_H
#ifndef BT_GJK_PAIR_DETECTOR_H
#define BT_GJK_PAIR_DETECTOR_H
#include "btDiscreteCollisionDetectorInterface.h"
#include "BulletCollision/CollisionShapes/btCollisionMargin.h"
@@ -100,4 +100,4 @@ public:
};
#endif //GJK_PAIR_DETECTOR_H
#endif //BT_GJK_PAIR_DETECTOR_H

View File

@@ -13,8 +13,8 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef MANIFOLD_CONTACT_POINT_H
#define MANIFOLD_CONTACT_POINT_H
#ifndef BT_MANIFOLD_CONTACT_POINT_H
#define BT_MANIFOLD_CONTACT_POINT_H
#include "LinearMath/btVector3.h"
#include "LinearMath/btTransformUtil.h"
@@ -155,4 +155,4 @@ class btManifoldPoint
};
#endif //MANIFOLD_CONTACT_POINT_H
#endif //BT_MANIFOLD_CONTACT_POINT_H

View File

@@ -13,8 +13,8 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef MINKOWSKI_PENETRATION_DEPTH_SOLVER_H
#define MINKOWSKI_PENETRATION_DEPTH_SOLVER_H
#ifndef BT_MINKOWSKI_PENETRATION_DEPTH_SOLVER_H
#define BT_MINKOWSKI_PENETRATION_DEPTH_SOLVER_H
#include "btConvexPenetrationDepthSolver.h"
@@ -36,5 +36,5 @@ public:
);
};
#endif //MINKOWSKI_PENETRATION_DEPTH_SOLVER_H
#endif //BT_MINKOWSKI_PENETRATION_DEPTH_SOLVER_H

View File

@@ -13,8 +13,8 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef PERSISTENT_MANIFOLD_H
#define PERSISTENT_MANIFOLD_H
#ifndef BT_PERSISTENT_MANIFOLD_H
#define BT_PERSISTENT_MANIFOLD_H
#include "LinearMath/btVector3.h"
@@ -229,4 +229,4 @@ public:
#endif //PERSISTENT_MANIFOLD_H
#endif //BT_PERSISTENT_MANIFOLD_H

View File

@@ -13,8 +13,8 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef POINT_COLLECTOR_H
#define POINT_COLLECTOR_H
#ifndef BT_POINT_COLLECTOR_H
#define BT_POINT_COLLECTOR_H
#include "btDiscreteCollisionDetectorInterface.h"
@@ -60,5 +60,5 @@ struct btPointCollector : public btDiscreteCollisionDetectorInterface::Result
}
};
#endif //POINT_COLLECTOR_H
#endif //BT_POINT_COLLECTOR_H

View File

@@ -17,8 +17,8 @@ subject to the following restrictions:
///This file was written by Erwin Coumans
#ifndef __POLYHEDRAL_CONTACT_CLIPPING_H
#define __POLYHEDRAL_CONTACT_CLIPPING_H
#ifndef BT_POLYHEDRAL_CONTACT_CLIPPING_H
#define BT_POLYHEDRAL_CONTACT_CLIPPING_H
#include "LinearMath/btAlignedObjectArray.h"
@@ -42,5 +42,5 @@ struct btPolyhedralContactClipping
};
#endif // __POLYHEDRAL_CONTACT_CLIPPING_H
#endif // BT_POLYHEDRAL_CONTACT_CLIPPING_H

View File

@@ -13,8 +13,8 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef RAYCAST_TRI_CALLBACK_H
#define RAYCAST_TRI_CALLBACK_H
#ifndef BT_RAYCAST_TRI_CALLBACK_H
#define BT_RAYCAST_TRI_CALLBACK_H
#include "BulletCollision/CollisionShapes/btTriangleCallback.h"
#include "LinearMath/btTransform.h"
@@ -68,5 +68,5 @@ public:
virtual btScalar reportHit (const btVector3& hitNormalLocal, const btVector3& hitPointLocal, btScalar hitFraction, int partId, int triangleIndex) = 0;
};
#endif //RAYCAST_TRI_CALLBACK_H
#endif //BT_RAYCAST_TRI_CALLBACK_H

View File

@@ -15,8 +15,8 @@ subject to the following restrictions:
#ifndef SIMPLEX_SOLVER_INTERFACE_H
#define SIMPLEX_SOLVER_INTERFACE_H
#ifndef BT_SIMPLEX_SOLVER_INTERFACE_H
#define BT_SIMPLEX_SOLVER_INTERFACE_H
#include "LinearMath/btVector3.h"
@@ -59,5 +59,5 @@ class btSimplexSolverInterface
};
#endif
#endif //SIMPLEX_SOLVER_INTERFACE_H
#endif //BT_SIMPLEX_SOLVER_INTERFACE_H

View File

@@ -14,8 +14,8 @@ subject to the following restrictions:
*/
#ifndef SUBSIMPLEX_CONVEX_CAST_H
#define SUBSIMPLEX_CONVEX_CAST_H
#ifndef BT_SUBSIMPLEX_CONVEX_CAST_H
#define BT_SUBSIMPLEX_CONVEX_CAST_H
#include "btConvexCast.h"
#include "btSimplexSolverInterface.h"
@@ -47,4 +47,4 @@ public:
};
#endif //SUBSIMPLEX_CONVEX_CAST_H
#endif //BT_SUBSIMPLEX_CONVEX_CAST_H

View File

@@ -15,8 +15,8 @@ subject to the following restrictions:
#ifndef btVoronoiSimplexSolver_H
#define btVoronoiSimplexSolver_H
#ifndef BT_VORONOI_SIMPLEX_SOLVER_H
#define BT_VORONOI_SIMPLEX_SOLVER_H
#include "btSimplexSolverInterface.h"
@@ -175,4 +175,5 @@ public:
};
#endif //VoronoiSimplexSolver
#endif //BT_VORONOI_SIMPLEX_SOLVER_H