Cast whatever is returned by pthread_self to uintptr_t in _dispatch_thread_self, so that later casts to (void *) work consistently across operating systems. Submitted by: Joakim Johansson <jocke@tbricks.com>
--- trunk/src/shims/tsd.h 2009-11-17 17:18:15 UTC (rev 168)
+++ trunk/src/shims/tsd.h 2009-11-17 17:23:08 UTC (rev 169)
@@ -115,6 +115,6 @@
}
#endif
-#define _dispatch_thread_self pthread_self
+#define _dispatch_thread_self (uintptr_t)pthread_self
#endif /* __DISPATCH_SHIMS_TSD__ */