Fix MinGW threading compilation error (#2210)
This commit is contained in:
parent
409f7f5dd7
commit
b281a719fa
@ -81,7 +81,11 @@ class ThreadStl {
|
|||||||
|
|
||||||
id get_id() noexcept {
|
id get_id() noexcept {
|
||||||
#if TD_WINDOWS
|
#if TD_WINDOWS
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
return GetThreadId(reinterpret_cast<HANDLE>(thread_.native_handle()));
|
||||||
|
#else
|
||||||
return GetThreadId(thread_.native_handle());
|
return GetThreadId(thread_.native_handle());
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
return thread_.get_id();
|
return thread_.get_id();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user