Merge pull request #14 from Kazade/master
Fix issues with GCC + Clang on Linux/OSX
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
| @@ -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) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user