summaryrefslogtreecommitdiffstats
path: root/generic/tclPanic.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclPanic.c')
-rw-r--r--generic/tclPanic.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/generic/tclPanic.c b/generic/tclPanic.c
index ad17360..035edd5 100644
--- a/generic/tclPanic.c
+++ b/generic/tclPanic.c
@@ -12,14 +12,11 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPanic.c,v 1.19 2010/12/20 10:28:48 nijtmans Exp $
+ * RCS: @(#) $Id: tclPanic.c,v 1.20 2011/01/12 07:48:29 nijtmans Exp $
*/
#include "tclInt.h"
#ifdef _WIN32
-# ifdef HAVE_INTRIN_H
-# include <intrin.h>
-# endif
MODULE_SCOPE void tclWinDebugPanic(const char *format, ...);
#endif
@@ -106,10 +103,10 @@ Tcl_PanicVA(
}
/* In case the users panic proc does not abort, we do it here */
#ifdef _WIN32
-# ifdef HAVE_INTRIN_H
- __debugbreak();
-# elif defined(__GNUC__)
+# if defined(__GNUC__)
__builtin_trap();
+# elif defined(_MSC_VER)
+ __debugbreak();
# else
DebugBreak();
# endif