From 6f3abe414cab14feda8f8c2b4028c88924261a5d Mon Sep 17 00:00:00 2001 From: Jan-Philip Stecker Date: Wed, 14 May 2014 19:44:23 +0200 Subject: [PATCH] fix gcc warning message in public header for c++11 - missing whitespace lead to msgs like: include/bullet/LinearMath/btScalar.h:100:41: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] - this error was visible in projects using bullet when using c++11 mode --- src/LinearMath/btScalar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LinearMath/btScalar.h b/src/LinearMath/btScalar.h index da3e88313..e02f99abc 100644 --- a/src/LinearMath/btScalar.h +++ b/src/LinearMath/btScalar.h @@ -97,7 +97,7 @@ inline int btGetVersion() #ifdef BT_DEBUG #ifdef _MSC_VER #include - #define btAssert(x) { if(!(x)){printf("Assert "__FILE__ ":%u ("#x")\n", __LINE__);__debugbreak(); }} + #define btAssert(x) { if(!(x)){printf("Assert " __FILE__ ":%u ("#x")\n", __LINE__);__debugbreak(); }} #else//_MSC_VER #include #define btAssert assert @@ -125,7 +125,7 @@ inline int btGetVersion() #ifdef __SPU__ #include #define printf spu_printf - #define btAssert(x) {if(!(x)){printf("Assert "__FILE__ ":%u ("#x")\n", __LINE__);spu_hcmpeq(0,0);}} + #define btAssert(x) {if(!(x)){printf("Assert " __FILE__ ":%u ("#x")\n", __LINE__);spu_hcmpeq(0,0);}} #else #define btAssert assert #endif