Change #ifndef names in headers to avoid name collision with others libraries

This commit is contained in:
Daniel Chappuis 2013-04-18 22:54:36 +02:00
parent 1e6efe7f9e
commit 16c6487796
42 changed files with 84 additions and 84 deletions

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef BODY_H #ifndef REACTPHYSICS3D_BODY_H
#define BODY_H #define REACTPHYSICS3D_BODY_H
// Libraries // Libraries
#include <stdexcept> #include <stdexcept>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef COLLISION_BODY_H #ifndef REACTPHYSICS3D_COLLISION_BODY_H
#define COLLISION_BODY_H #define REACTPHYSICS3D_COLLISION_BODY_H
// Libraries // Libraries
#include <stdexcept> #include <stdexcept>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef RIGID_BODY_H #ifndef REACTPHYSICS3D_RIGID_BODY_H
#define RIGID_BODY_H #define REACTPHYSICS3D_RIGID_BODY_H
// Libraries // Libraries
#include <cassert> #include <cassert>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef BROAD_PHASE_PAIR_H #ifndef REACTPHYSICS3D_BROAD_PHASE_PAIR_H
#define BROAD_PHASE_PAIR_H #define REACTPHYSICS3D_BROAD_PHASE_PAIR_H
// Libraries // Libraries
#include "../body/CollisionBody.h" #include "../body/CollisionBody.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef COLLISION_DETECTION_H #ifndef REACTPHYSICS3D_COLLISION_DETECTION_H
#define COLLISION_DETECTION_H #define REACTPHYSICS3D_COLLISION_DETECTION_H
// Libraries // Libraries
#include "../body/CollisionBody.h" #include "../body/CollisionBody.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONTACT_INFO_H #ifndef REACTPHYSICS3D_CONTACT_INFO_H
#define CONTACT_INFO_H #define REACTPHYSICS3D_CONTACT_INFO_H
// Libraries // Libraries
#include "../collision/shapes/BoxShape.h" #include "../collision/shapes/BoxShape.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef BROAD_PHASE_ALGORITHM_H #ifndef REACTPHYSICS3D_BROAD_PHASE_ALGORITHM_H
#define BROAD_PHASE_ALGORITHM_H #define REACTPHYSICS3D_BROAD_PHASE_ALGORITHM_H
// Libraries // Libraries
#include <vector> #include <vector>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef NO_BROAD_PHASE_ALGORITHM_H #ifndef REACTPHYSICS3D_NO_BROAD_PHASE_ALGORITHM_H
#define NO_BROAD_PHASE_ALGORITHM_H #define REACTPHYSICS3D_NO_BROAD_PHASE_ALGORITHM_H
// Libraries // Libraries
#include "BroadPhaseAlgorithm.h" #include "BroadPhaseAlgorithm.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef PAIR_MANAGER_H #ifndef REACTPHYSICS3D_PAIR_MANAGER_H
#define PAIR_MANAGER_H #define REACTPHYSICS3D_PAIR_MANAGER_H
// Libraries // Libraries
#include "../../body/CollisionBody.h" #include "../../body/CollisionBody.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef SWEEP_AND_PRUNE_ALGORITHM_H #ifndef REACTPHYSICS3D_SWEEP_AND_PRUNE_ALGORITHM_H
#define SWEEP_AND_PRUNE_ALGORITHM_H #define REACTPHYSICS3D_SWEEP_AND_PRUNE_ALGORITHM_H
// Libraries // Libraries
#include "BroadPhaseAlgorithm.h" #include "BroadPhaseAlgorithm.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef EPA_ALGORITHM_H #ifndef REACTPHYSICS3D_EPA_ALGORITHM_H
#define EPA_ALGORITHM_H #define REACTPHYSICS3D_EPA_ALGORITHM_H
// Libraries // Libraries
#include "../GJK/Simplex.h" #include "../GJK/Simplex.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef EDGE_EPA_H #ifndef REACTPHYSICS3D_EDGE_EPA_H
#define EDGE_EPA_H #define REACTPHYSICS3D_EDGE_EPA_H
// Libraries // Libraries

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef TRIANGLE_EPA_H #ifndef REACTPHYSICS3D_TRIANGLE_EPA_H
#define TRIANGLE_EPA_H #define REACTPHYSICS3D_TRIANGLE_EPA_H
// Libraries // Libraries
#include "../../../mathematics/mathematics.h" #include "../../../mathematics/mathematics.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef TRIANGLES_STORE_H #ifndef REACTPHYSICS3D_TRIANGLES_STORE_H
#define TRIANGLES_STORE_H #define REACTPHYSICS3D_TRIANGLES_STORE_H
#include "TriangleEPA.h" #include "TriangleEPA.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef GJK_ALGORITHM_H #ifndef REACTPHYSICS3D_GJK_ALGORITHM_H
#define GJK_ALGORITHM_H #define REACTPHYSICS3D_GJK_ALGORITHM_H
// Libraries // Libraries
#include "../NarrowPhaseAlgorithm.h" #include "../NarrowPhaseAlgorithm.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef SIMPLEX_H #ifndef REACTPHYSICS3D_SIMPLEX_H
#define SIMPLEX_H #define REACTPHYSICS3D_SIMPLEX_H
// Libraries // Libraries
#include "../../../mathematics/mathematics.h" #include "../../../mathematics/mathematics.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef NARROW_PHASE_ALGORITHM_H #ifndef REACTPHYSICS3D_NARROW_PHASE_ALGORITHM_H
#define NARROW_PHASE_ALGORITHM_H #define REACTPHYSICS3D_NARROW_PHASE_ALGORITHM_H
// Libraries // Libraries
#include "../../body/Body.h" #include "../../body/Body.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef SPHERE_VS_SPHERE_ALGORITHM_H #ifndef REACTPHYSICS3D_SPHERE_VS_SPHERE_ALGORITHM_H
#define SPHERE_VS_SPHERE_ALGORITHM_H #define REACTPHYSICS3D_SPHERE_VS_SPHERE_ALGORITHM_H
// Libraries // Libraries
#include "../../body/Body.h" #include "../../body/Body.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef AABB_H #ifndef REACTPHYSICS3D_AABB_H
#define AABB_H #define REACTPHYSICS3D_AABB_H
// Libraries // Libraries
#include "../../mathematics/mathematics.h" #include "../../mathematics/mathematics.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef BOX_SHAPE_H #ifndef REACTPHYSICS3D_BOX_SHAPE_H
#define BOX_SHAPE_H #define REACTPHYSICS3D_BOX_SHAPE_H
// Libraries // Libraries
#include <cfloat> #include <cfloat>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef COLLISION_SHAPE_H #ifndef REACTPHYSICS3D_COLLISION_SHAPE_H
#define COLLISION_SHAPE_H #define REACTPHYSICS3D_COLLISION_SHAPE_H
// Libraries // Libraries
#include <cassert> #include <cassert>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONE_SHAPE_H #ifndef REACTPHYSICS3D_CONE_SHAPE_H
#define CONE_SHAPE_H #define REACTPHYSICS3D_CONE_SHAPE_H
// Libraries // Libraries
#include "CollisionShape.h" #include "CollisionShape.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CYLINDER_SHAPE_H #ifndef REACTPHYSICS3D_CYLINDER_SHAPE_H
#define CYLINDER_SHAPE_H #define REACTPHYSICS3D_CYLINDER_SHAPE_H
// Libraries // Libraries
#include "CollisionShape.h" #include "CollisionShape.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef SPHERE_SHAPE_H #ifndef REACTPHYSICS3D_SPHERE_SHAPE_H
#define SPHERE_SHAPE_H #define REACTPHYSICS3D_SPHERE_SHAPE_H
// Libraries // Libraries
#include "CollisionShape.h" #include "CollisionShape.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONFIGURATION_H #ifndef REACTPHYSICS3D_CONFIGURATION_H
#define CONFIGURATION_H #define REACTPHYSICS3D_CONFIGURATION_H
// Libraries // Libraries
#include <limits> #include <limits>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONSTRAINT_H #ifndef REACTPHYSICS3D_CONSTRAINT_H
#define CONSTRAINT_H #define REACTPHYSICS3D_CONSTRAINT_H
// Libraries // Libraries
#include "../body/RigidBody.h" #include "../body/RigidBody.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONTACT_POINT_H #ifndef REACTPHYSICS3D_CONTACT_POINT_H
#define CONTACT_POINT_H #define REACTPHYSICS3D_CONTACT_POINT_H
// Libraries // Libraries
#include "Constraint.h" #include "Constraint.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef DECIMAL_H #ifndef REACTPHYSICS3D_DECIMAL_H
#define DECIMAL_H #define REACTPHYSICS3D_DECIMAL_H
/// ReactPhysiscs3D namespace /// ReactPhysiscs3D namespace
namespace reactphysics3d { namespace reactphysics3d {

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef COLLISION_WORLD_H #ifndef REACTPHYSICS3D_COLLISION_WORLD_H
#define COLLISION_WORLD_H #define REACTPHYSICS3D_COLLISION_WORLD_H
// Libraries // Libraries
#include <vector> #include <vector>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONTACT_MANIFOLD_H #ifndef REACTPHYSICS3D_CONTACT_MANIFOLD_H
#define CONTACT_MANIFOLD_H #define REACTPHYSICS3D_CONTACT_MANIFOLD_H
// Libraries // Libraries
#include <vector> #include <vector>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef CONTACT_SOLVER_H #ifndef REACTPHYSICS3D_CONTACT_SOLVER_H
#define CONTACT_SOLVER_H #define REACTPHYSICS3D_CONTACT_SOLVER_H
// Libraries // Libraries
#include "../constraint/ContactPoint.h" #include "../constraint/ContactPoint.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef DYNAMICS_WORLD_H #ifndef REACTPHYSICS3D_DYNAMICS_WORLD_H
#define DYNAMICS_WORLD_H #define REACTPHYSICS3D_DYNAMICS_WORLD_H
// Libraries // Libraries
#include "CollisionWorld.h" #include "CollisionWorld.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef OVERLAPPING_PAIR_H #ifndef REACTPHYSICS3D_OVERLAPPING_PAIR_H
#define OVERLAPPING_PAIR_H #define REACTPHYSICS3D_OVERLAPPING_PAIR_H
// Libraries // Libraries
#include "ContactManifold.h" #include "ContactManifold.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef PROFILER_H #ifndef REACTPHYSICS3D_PROFILER_H
#define PROFILER_H #define REACTPHYSICS3D_PROFILER_H
#ifdef IS_PROFILING_ACTIVE #ifdef IS_PROFILING_ACTIVE

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef TIMER_H #ifndef REACTPHYSICS3D_TIMER_H
#define TIMER_H #define REACTPHYSICS3D_TIMER_H
// Libraries // Libraries
#include <stdexcept> #include <stdexcept>

View File

@ -24,8 +24,8 @@
********************************************************************************/ ********************************************************************************/
#ifndef MATRIX3X3_H #ifndef REACTPHYSICS3D_MATRIX3X3_H
#define MATRIX3X3_H #define REACTPHYSICS3D_MATRIX3X3_H
// Libraries // Libraries
#include <cassert> #include <cassert>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef QUATERNION_H #ifndef REACTPHYSICS3D_QUATERNION_H
#define QUATERNION_H #define REACTPHYSICS3D_QUATERNION_H
// Libraries // Libraries
#include <cmath> #include <cmath>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef TRANSFORM_H #ifndef REACTPHYSICS3D_TRANSFORM_H
#define TRANSFORM_H #define REACTPHYSICS3D_TRANSFORM_H
// Libraries // Libraries
#include "Matrix3x3.h" #include "Matrix3x3.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef VECTOR3_H #ifndef REACTPHYSICS3D_VECTOR3_H
#define VECTOR3_H #define REACTPHYSICS3D_VECTOR3_H
// Libraries // Libraries
#include <cmath> #include <cmath>

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef MATHEMATICS_H #ifndef REACTPHYSICS3D_MATHEMATICS_H
#define MATHEMATICS_H #define REACTPHYSICS3D_MATHEMATICS_H
// Libraries // Libraries
#include "Matrix3x3.h" #include "Matrix3x3.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef MATHEMATICS_FUNCTIONS_H #ifndef REACTPHYSICS3D_MATHEMATICS_FUNCTIONS_H
#define MATHEMATICS_FUNCTIONS_H #define REACTPHYSICS3D_MATHEMATICS_FUNCTIONS_H
// Libraries // Libraries
#include "../configuration.h" #include "../configuration.h"

View File

@ -23,8 +23,8 @@
* * * *
********************************************************************************/ ********************************************************************************/
#ifndef MEMORY_ALLOCATOR_H #ifndef REACTPHYSICS3D_MEMORY_ALLOCATOR_H
#define MEMORY_ALLOCATOR_H #define REACTPHYSICS3D_MEMORY_ALLOCATOR_H
// Libraries // Libraries
#include "../configuration.h" #include "../configuration.h"