Moved NAN_FLT define to BLI_math, this may come in useful.

This commit is contained in:
Lukas Toenne
2013-08-13 10:09:27 +00:00
parent 8cda3264bd
commit 4d5c64372a
2 changed files with 4 additions and 4 deletions

View File

@@ -80,6 +80,10 @@
#define MAXFLOAT ((float)3.40282347e+38)
#endif
/* evil quiet NaN definition */
static const int NAN_INT = 0x7FC00000;
#define NAN_FLT *((float *)(&NAN_INT))
/* do not redefine functions from C99 or POSIX.1-2001 */
#if !(defined(_ISOC99_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L))