summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-05-09 13:21:19 -0400
committerEric Milkie <milkie@10gen.com>2012-05-09 13:21:19 -0400
commitccc9b9e5139188fd80a278ef94453e6c905d2639 (patch)
treec54cdcf2693ae9c276a4552bc4842706780b132c /src/mongo/platform
parent8e80bc36e29cdb47eb07e13d14ae0a0af6cd3084 (diff)
downloadmongo-ccc9b9e5139188fd80a278ef94453e6c905d2639.tar.gz
fix isnan for Windows
Diffstat (limited to 'src/mongo/platform')
-rw-r--r--src/mongo/platform/basic.h2
-rw-r--r--src/mongo/platform/windows_basic.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/platform/basic.h b/src/mongo/platform/basic.h
index e21a242c2e6..9bb3267d6e0 100644
--- a/src/mongo/platform/basic.h
+++ b/src/mongo/platform/basic.h
@@ -15,5 +15,7 @@
# define __builtin_memcpy memcpy
# define __builtin_memset memset
# define __builtin_memmove memmove
+
+#define mongo_isnan(x) isnan(x)
#endif
diff --git a/src/mongo/platform/windows_basic.h b/src/mongo/platform/windows_basic.h
index 3a728981d33..90914250f85 100644
--- a/src/mongo/platform/windows_basic.h
+++ b/src/mongo/platform/windows_basic.h
@@ -16,4 +16,6 @@
# include <ws2tcpip.h>
# include <wspiapi.h>
# include <windows.h>
+
+#define mongo_isnan(x) _isnan(x)
#endif