diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-03-20 19:28:51 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-03-20 19:28:51 +0300 |
commit | 7178f10b81006082937de8fa8be90076f478da64 (patch) | |
tree | 35d84710dc9af3b9cb3ed98c7895e49342dd4b8b | |
parent | 08164794b2dad21e2ffaf2fa61d60fa77d86d2c8 (diff) |
Replacing NAN with C++ limits version, hope that works for MSVC...
-rw-r--r-- | intern/audaspace/intern/AUD_NULLDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/audaspace/intern/AUD_NULLDevice.cpp b/intern/audaspace/intern/AUD_NULLDevice.cpp index 83d908afa43..c9dfadd1839 100644 --- a/intern/audaspace/intern/AUD_NULLDevice.cpp +++ b/intern/audaspace/intern/AUD_NULLDevice.cpp @@ -23,7 +23,7 @@ * ***** END LGPL LICENSE BLOCK ***** */ -#include <cmath> +#include <limits> #include "AUD_NULLDevice.h" #include "AUD_IReader.h" @@ -78,7 +78,7 @@ bool AUD_NULLDevice::seek(AUD_Handle* handle, float position) float AUD_NULLDevice::getPosition(AUD_Handle* handle) { - return NAN; + return std::numeric_limits<float>::quiet_NaN(); } AUD_Status AUD_NULLDevice::getStatus(AUD_Handle* handle) |