ValleyBell / libvgm

A more modular rewrite of most components from VGMPlay. will include sub-libraries for audio output, sound emulation and VGM playback
irc://irc.digibase.ca/#vgmrips
136 stars 33 forks source link

Fix OSThread_GetID on Darwin #95

Closed OPNA2608 closed 2 years ago

OPNA2608 commented 2 years ago
utils/OSThread_POSIX.c:88:9: warning: incompatible pointer to integer conversion returning 'const pthread_t' (aka 'struct _opaque_pthread_t *const') from a function with result type 'UINT64' (aka 'unsigned long long') [-Wint-conversion]

pthread_t on macOS is more than just an unsigned long int typedef, properly getting a numerical id requires the use of a non-portable function.

ValleyBell commented 2 years ago

Thanks!