[libdispatch-changes] [169] trunk/src/shims/tsd.h
source_changes at macosforge.org
source_changes at macosforge.org
Tue Nov 17 09:23:09 PST 2009
Revision: 169
http://trac.macosforge.org/projects/libdispatch/changeset/169
Author: robert at fledge.watson.org
Date: 2009-11-17 09:23:08 -0800 (Tue, 17 Nov 2009)
Log Message:
-----------
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 at tbricks.com>
Modified Paths:
--------------
trunk/src/shims/tsd.h
Modified: trunk/src/shims/tsd.h
===================================================================
--- 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__ */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091117/38621655/attachment.html>
More information about the libdispatch-changes
mailing list