From 1e7fb752298e25373227b8641570188f3e09fcfe Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Mon, 23 Dec 2019 11:26:31 +0000 Subject: Workaround for [ce3b9f2b04]: compilation errors with clang (windows msys2) --- win/tclWinChan.c | 6 +++--- 1 file 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 -- cgit v0.12