From c5fdd98330d5f57f0aea0d778da31e4bc3b80084 Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Wed, 21 Jun 2006 21:04:01 +0000 Subject: [PATCH] printf for debugging requires stdio.h --- Bullet/NarrowPhaseCollision/GjkPairDetector.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bullet/NarrowPhaseCollision/GjkPairDetector.cpp b/Bullet/NarrowPhaseCollision/GjkPairDetector.cpp index ced076581..d7b297719 100644 --- a/Bullet/NarrowPhaseCollision/GjkPairDetector.cpp +++ b/Bullet/NarrowPhaseCollision/GjkPairDetector.cpp @@ -18,6 +18,10 @@ subject to the following restrictions: #include "NarrowPhaseCollision/SimplexSolverInterface.h" #include "NarrowPhaseCollision/ConvexPenetrationDepthSolver.h" +#if defined(DEBUG) || defined (_DEBUG) +#include //for debug printf +#endif + static const SimdScalar rel_error = SimdScalar(1.0e-5); SimdScalar rel_error2 = rel_error * rel_error; float maxdist2 = 1.e30f;