mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Crosscompiling solution for isfinite & isnan
This commit is contained in:
@@ -137,13 +137,11 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
inline float finiteAlways(float f) { return isfinite(f) ? f : 0.0f; }
|
inline float finiteAlways(float f) { return isfinite(f) ? f : 0.0f; }
|
||||||
|
|
||||||
#if COMPILER == COMPILER_MICROSOFT
|
inline bool myisfinite(float f) { return isfinite(f) && !isnan(f); }
|
||||||
inline bool myisfinite(float f) { return _finite(f) && !_isnan(f); }
|
|
||||||
#else
|
|
||||||
inline bool myisfinite(float f) { return isfinite(f) && !std::isnan(f); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define atol(a) strtoul( a, NULL, 10)
|
#define atol(a) strtoul( a, NULL, 10)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user