Fix MinGW threading compilation error (#2210)

This commit is contained in:
Eric Kotato 2022-11-26 00:36:48 +03:00 committed by GitHub
parent 409f7f5dd7
commit b281a719fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,11 @@ class ThreadStl {
id get_id() noexcept {
#if TD_WINDOWS
#ifdef __MINGW32__
return GetThreadId(reinterpret_cast<HANDLE>(thread_.native_handle()));
#else
return GetThreadId(thread_.native_handle());
#endif
#else
return thread_.get_id();
#endif