First step towards getting __PHYSFS_platformGetThreadID() to work universally.

This commit is contained in:
Ryan C. Gordon 2002-07-25 17:42:21 +00:00
parent d15731bb8e
commit 2b0cecee7c
1 changed files with 3 additions and 1 deletions

View File

@ -290,9 +290,11 @@ void __PHYSFS_platformReleaseMutex(void *mutex) {}
#else
#define PHTREAD_TO_UI64(thr) ((PHYSFS_uint64) (thr))
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void)
{
return((PHYSFS_uint64) pthread_self());
return(PHTREAD_TO_UI64(pthread_self()));
} /* __PHYSFS_platformGetThreadID */