Skip to content

Commit

Permalink
First step towards getting __PHYSFS_platformGetThreadID() to work uni…
Browse files Browse the repository at this point in the history
…versally.
  • Loading branch information
icculus committed Jul 25, 2002
1 parent d15731b commit 2b0cece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/unix.c
Expand Up @@ -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 */


Expand Down

0 comments on commit 2b0cece

Please sign in to comment.