summaryrefslogtreecommitdiff
path: root/tests/minicheck.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-02-26 00:43:01 +0000
committerXin LI <delphij@FreeBSD.org>2013-02-26 00:43:01 +0000
commit36e3acbc34f6b954a1142555e58a3f1690829677 (patch)
tree172671bec00add87d08b8e0859c1cc0abed5585d /tests/minicheck.h
parent9fcd883dcb0db8be87165724e54d48a6c547c49f (diff)
Notes
Diffstat (limited to 'tests/minicheck.h')
-rwxr-xr-xtests/minicheck.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/minicheck.h b/tests/minicheck.h
index f846bead1a8e..c917c0269717 100755
--- a/tests/minicheck.h
+++ b/tests/minicheck.h
@@ -18,10 +18,11 @@ extern "C" {
#define CK_NORMAL 1
#define CK_VERBOSE 2
-/* Workaround for Tru64 Unix systems where the C compiler has a working
- __func__, but the C++ compiler only has a working __FUNCTION__. This
- could be fixed in configure.in, but it's not worth it right now. */
-#if defined(__osf__) && defined(__cplusplus)
+/* Workaround for Microsoft's compiler and Tru64 Unix systems where the
+ C compiler has a working __func__, but the C++ compiler only has a
+ working __FUNCTION__. This could be fixed in configure.in, but it's
+ not worth it right now. */
+#if defined (_MSC_VER) || (defined(__osf__) && defined(__cplusplus))
#define __func__ __FUNCTION__
#endif