summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/ports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index ce9e79e76..a6f89b9f5 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -471,7 +471,7 @@ int hb_platform_init()
{
int result = 0;
-#if defined(SYS_MINGW) && defined(PTW32_STATIC_LIB)
+#if defined(SYS_MINGW) && defined(PTW32_VERSION)
result = !pthread_win32_process_attach_np();
if (result)
{
@@ -810,7 +810,7 @@ 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)
+ #if defined(PTW32_VERSION)
return (uint64_t)(ptrdiff_t)t->thread.p;
#else
return (uint64_t)t->thread;