Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-08-13 14:09:27 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-08-13 14:09:27 +0400
commit4d5c64372ada6f8dbfd8d89d4bcd515eadbb32d4 (patch)
tree35774231ee0b5a18b66474bb80aaa228521f5e7a /source
parent8cda3264bd071521d1dadcfe640474100f227ed3 (diff)
Moved NAN_FLT define to BLI_math, this may come in useful.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/sound.c4
-rw-r--r--source/blender/blenlib/BLI_math_base.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index feff8f95fd7..2f8eb7d9931 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -60,10 +60,6 @@
#include "BKE_sequencer.h"
#include "BKE_scene.h"
-// evil quiet NaN definition
-static const int NAN_INT = 0x7FC00000;
-#define NAN_FLT *((float *)(&NAN_INT))
-
#ifdef WITH_AUDASPACE
// evil global ;-)
static int sound_cfra;
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h
index 4b71babdba1..8e8a7f1fef6 100644
--- a/source/blender/blenlib/BLI_math_base.h
+++ b/source/blender/blenlib/BLI_math_base.h
@@ -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))