From 2b0cecee7c572065a9f41f234f83e07f4af7235e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 25 Jul 2002 17:42:21 +0000 Subject: [PATCH] First step towards getting __PHYSFS_platformGetThreadID() to work universally. --- platform/unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/unix.c b/platform/unix.c index 12dde3b5..0a75e724 100644 --- a/platform/unix.c +++ b/platform/unix.c @@ -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 */