summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index bb7c235a2..d519f593c 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -697,7 +697,11 @@ static uint64_t hb_thread_to_integer( const hb_thread_t* t )
#if defined( SYS_CYGWIN )
return (uint64_t)t->thread;
#elif defined( _WIN32 ) || defined( __MINGW32__ )
+ #if defined(PTW32_STATIC_LIB)
return (uint64_t)(ptrdiff_t)t->thread.p;
+ #else
+ return (uint64_t)t->thread;
+ #endif
#elif defined( SYS_DARWIN )
return (unsigned long)t->thread;
#else