summaryrefslogtreecommitdiff
path: root/test/windows
diff options
context:
space:
mode:
authorDavid Hows <howsdav@gmail.com>2016-02-23 10:10:34 +1100
committerDavid Hows <howsdav@gmail.com>2016-02-23 10:10:34 +1100
commitdd9dbe2f0985a86da7c45f8e8f0d0738d73d0941 (patch)
tree34cf8c9c59f41e3264c8b2fa952d28b5d37fe6b7 /test/windows
parentb27cac37d6b05157b65c07f7c85faf85f17f5f9e (diff)
downloadmongo-dd9dbe2f0985a86da7c45f8e8f0d0738d73d0941.tar.gz
WT-2419 -Fix missing __func__ defintion under MSVC
Diffstat (limited to 'test/windows')
-rw-r--r--test/windows/windows_shim.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/windows/windows_shim.h b/test/windows/windows_shim.h
index c35c27cb7b0..dc082f990ce 100644
--- a/test/windows/windows_shim.h
+++ b/test/windows/windows_shim.h
@@ -44,6 +44,11 @@ typedef int u_int;
#define R_OK 04
#define X_OK R_OK
+/* MSVC Doesn't provide __func__, it has __FUNCTION__ */
+#ifdef _MSC_VER
+#define __func__ __FUNCTION__
+#endif
+
/* snprintf does not exist on <= VS 2013 */
#if _MSC_VER < 1900
#define snprintf _wt_snprintf