diff options
author | Bradley Sepos <[email protected]> | 2016-06-15 09:20:55 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-06-21 21:33:32 -0400 |
commit | 36c415e26e9fd28239655373e594b244fde637ea (patch) | |
tree | f7230e4b4c655e2e48a625d729e0cb93b1ee0ed8 /libhb/ports.c | |
parent | 62754db3d3f729d750343d64baa6827cb41c6e64 (diff) |
libhb: Improve pthreads-win32 compatibility when PTW32_STATIC_BUILD isn't defined.
As may be the case with newer mingw with pthreads precompiled.
Diffstat (limited to 'libhb/ports.c')
-rw-r--r-- | libhb/ports.c | 4 |
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; |