summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-23 11:26:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-23 11:26:31 (GMT)
commit1e7fb752298e25373227b8641570188f3e09fcfe (patch)
tree28ae7c418acd7b2a8a273aeb96d9d6ce29276adc /win/tclWinChan.c
parent834ee2dd0d502b27a5bce4983910b0d05ff76aab (diff)
downloadtcl-1e7fb752298e25373227b8641570188f3e09fcfe.zip
tcl-1e7fb752298e25373227b8641570188f3e09fcfe.tar.gz
tcl-1e7fb752298e25373227b8641570188f3e09fcfe.tar.bz2
Workaround for [ce3b9f2b04]: compilation errors with clang (windows msys2)
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 209b860..b8016ec 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -1052,7 +1052,7 @@ Tcl_MakeFileChannel(
int mode) /* ORed combination of TCL_READABLE and
* TCL_WRITABLE to indicate file mode. */
{
-#if defined(HAVE_NO_SEH) && !defined(_WIN64)
+#if defined(HAVE_NO_SEH) && !defined(_WIN64) && !defined(__clang__)
TCLEXCEPTION_REGISTRATION registration;
#endif
char channelName[16 + TCL_INTEGER_SPACE];
@@ -1105,7 +1105,7 @@ Tcl_MakeFileChannel(
if (result == 0) {
/*
- * Unable to make a duplicate. It's definately invalid at this
+ * Unable to make a duplicate. It's definitely invalid at this
* point.
*/
@@ -1118,7 +1118,7 @@ Tcl_MakeFileChannel(
*/
result = 0;
-#if defined(HAVE_NO_SEH) && !defined(_WIN64)
+#if defined(HAVE_NO_SEH) && !defined(_WIN64) && !defined(__clang__)
/*
* Don't have SEH available, do things the hard way. Note that this
* needs to be one block of asm, to avoid stack imbalance; also, it is