First step towards getting __PHYSFS_platformGetThreadID() to work universally.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 25 Jul 2002 17:42:21 +0000
changeset 392 bcc8e4dca868
parent 391 3111260eb4b4
child 393 468f75bf4d7d
First step towards getting __PHYSFS_platformGetThreadID() to work universally.
platform/unix.c
--- a/platform/unix.c	Thu Jul 25 17:17:38 2002 +0000
+++ b/platform/unix.c	Thu Jul 25 17:42:21 2002 +0000
@@ -290,9 +290,11 @@
 
 #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 */