Skip to content

Commit ae0eff6

Browse files
author
jan.nijtmans
committed
Fix for [7d6590d964]: Mingw-64 has SEH
1 parent 3dfd138 commit ae0eff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win/tkWin32Dll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "tkWinInt.h"
1313
#ifndef STATIC_BUILD
1414

15-
#if defined(HAVE_NO_SEH) && !defined(__aarch64__)
15+
#if defined(HAVE_NO_SEH) && !defined(__aarch64__) && (!defined(__MINGW64_VERSION_MAJOR) || (__MINGW64_VERSION_MAJOR < 3))
1616

1717
/*
1818
* Unlike Borland and Microsoft, we don't register exception handlers by
@@ -101,7 +101,7 @@ DllMain(
101101
DWORD reason,
102102
LPVOID reserved)
103103
{
104-
#if defined(HAVE_NO_SEH) && !defined(__aarch64__)
104+
#if defined(HAVE_NO_SEH) && !defined(__aarch64__) && (!defined(__MINGW64_VERSION_MAJOR) || (__MINGW64_VERSION_MAJOR < 3))
105105
TCLEXCEPTION_REGISTRATION registration;
106106
#endif
107107

0 commit comments

Comments
 (0)