mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-16 17:11:28 +00:00
Update fasttrig.h
FORCEINLINE is not a _WIN32 thing It is a compiler attribute use always_inline for GCC __forceinline for MSVC and plain inline for others
This commit is contained in:
parent
fd7895f880
commit
37f55485f8
1 changed files with 8 additions and 2 deletions
|
@ -39,10 +39,16 @@
|
|||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef FORCEINLINE
|
||||
#if defined (_MSC_VER)
|
||||
#define FORCEINLINE __forceinline
|
||||
//#elif defined (__MINGW32__)
|
||||
//#define FORCEINLINE inline
|
||||
#elif defined (__GNUC__)
|
||||
#define FORCEINLINE inline __attribute__((always_inline))
|
||||
#else
|
||||
#define FORCEINLINE
|
||||
#define FORCEINLINE inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// This uses a sine table with linear interpolation
|
||||
|
|
Loading…
Reference in a new issue