Explorar o código

First step towards getting __PHYSFS_platformGetThreadID() to work universally.

Ryan C. Gordon %!s(int64=24) %!d(string=hai) anos
pai
achega
2b0cecee7c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      platform/unix.c

+ 3 - 1
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 */