Merge pull request #14 from Kazade/master

Fix issues with GCC + Clang on Linux/OSX
This commit is contained in:
Irlan Robson 2017-04-07 10:25:03 -03:00 committed by GitHub
commit a6f45f9e22
2 changed files with 8 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#define B3_MATH_H #define B3_MATH_H
#include <cmath> #include <cmath>
#include <cstdlib> // For abs() with integral types
#include <bounce/common/settings.h> #include <bounce/common/settings.h>
inline bool b3IsValid(float32 fx) inline bool b3IsValid(float32 fx)

View File

@ -116,7 +116,13 @@ typedef float float32;
#define B3_MiB(n) (1024 * B3_KiB(n)) #define B3_MiB(n) (1024 * B3_KiB(n))
#define B3_GiB(n) (1024 * B3_MiB(n)) #define B3_GiB(n) (1024 * B3_MiB(n))
#define B3_FORCE_INLINE __forceinline #ifndef _MSC_VER
#ifdef __cplusplus
#define B3_FORCE_INLINE inline
#else
#define B3_FORCE_INLINE
#endif
#endif
#define B3_PROFILE(name) b3ProfileScope scope(name) #define B3_PROFILE(name) b3ProfileScope scope(name)