From 9c93c0bf08c0bc73d2c09e7f8c57721b557eb222 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Sat, 19 Apr 2014 14:10:49 +0200 Subject: Bullet: making bullet friction workaround more furureproof by using the __apple_build_version__ macro, TODO: check if problem persists with newer clang --- extern/bullet2/src/BulletDynamics/ConstraintSolver/btSolverBody.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extern/bullet2') diff --git a/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSolverBody.h b/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSolverBody.h index 1a6b1871f7e..8e4456e617a 100644 --- a/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSolverBody.h +++ b/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSolverBody.h @@ -37,9 +37,9 @@ struct btSimdScalar { } -/* workaround for an clang 3.4 issue, friction would fail with forced inlining */ -#if (defined(__APPLE__) && defined(__clang__) && (__clang_major__ == 5) && (__clang_minor__ == 1)) \ - || (defined(__clang__) && (__clang_major__ == 3) && (__clang_minor__ == 4)) +/* workaround for clang 3.4 ( == apple clang 5.1 ) issue, friction would fail with forced inlining */ +#if (defined(__clang__) && defined(__apple_build_version__) && (__clang_major__ == 5) && (__clang_minor__ == 1)) \ +|| (defined(__clang__) && !defined(__apple_build_version__) && (__clang_major__ == 3) && (__clang_minor__ == 4)) inline __attribute__ ((noinline)) btSimdScalar(float fl) #else SIMD_FORCE_INLINE btSimdScalar(float fl) -- cgit v1.2.3