mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 13:37:02 +00:00
[10176] Use std::isnan in the hope more non-MS platforms provide it.
Note that G3D::isNaN() is simply wrong IMHO...and not even inlined. One day, there will be a usable C++ standard not light-years behind good old C...
This commit is contained in:
parent
00751347e5
commit
425352fcc7
3 changed files with 5 additions and 3 deletions
|
|
@ -34,7 +34,9 @@
|
|||
#define MAX_STACK_SIZE 64
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define isnan(x) _isnan(x)
|
||||
#define isnan(x) _isnan(x)
|
||||
#else
|
||||
#define isnan(x) std::isnan(x)
|
||||
#endif
|
||||
|
||||
using G3D::Vector3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue