summaryrefslogtreecommitdiffstats
path: root/source/cIsThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cIsThread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cIsThread.cpp b/source/cIsThread.cpp
index cee4d4477..4aa25b534 100644
--- a/source/cIsThread.cpp
+++ b/source/cIsThread.cpp
@@ -13,7 +13,7 @@
// When in MSVC, the debugger provides "thread naming" by catching special exceptions. Interface here:
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_DEBUG)
//
// Usage: SetThreadName (-1, "MainThread");
//
@@ -41,7 +41,7 @@ static void SetThreadName( DWORD dwThreadID, LPCSTR szThreadName)
{
}
}
-#endif // _MSC_VER
+#endif // _MSC_VER && _DEBUG