diff options
author | Määttä Antti <antti.maatta@qt.io> | 2017-10-25 16:12:17 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2017-11-10 09:29:52 +0000 |
commit | 2ff9c066a8e843826faa90388fc2cc780a264ec4 (patch) | |
tree | 6eb713dca13e6e712690bac3a3ce8b540803a258 /src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp | |
parent | 449d507d29887addc29cbd9a85957f3624d041bb (diff) |
Enable mingw 32bit build
Task-number: QT3DS-173
Change-Id: I059a7fc9f360e1a148d3ab3940d9c0310dc678f2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp')
-rw-r--r-- | src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp b/src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp index c48a99da..3a30de8c 100644 --- a/src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp +++ b/src/Runtime/Source/Qt3DSFoundation/Source/foundation/windows/Qt3DSWindowsThread.cpp @@ -168,6 +168,7 @@ namespace foundation { info.dwThreadID = mImpl->threadID; info.dwFlags = 0; +#ifdef QT3DS_VC // C++ Exceptions are disabled for this project, but SEH is not (and cannot be) // http://stackoverflow.com/questions/943087/what-exactly-will-happen-if-i-disable-c-exceptions-in-a-project __try { @@ -176,6 +177,10 @@ namespace foundation { } __except (EXCEPTION_EXECUTE_HANDLER) { // this runs if not attached to a debugger (thus not really naming the thread) } +#else + RaiseException(QT3DS_MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), + (ULONG_PTR *)&info); +#endif } void Thread::setPriority(ThreadPriority::Enum prio) |