aboutsummaryrefslogtreecommitdiff
path: root/libobjc/thr-win32.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2008-11-21 12:07:43 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2008-11-21 13:07:43 +0100
commitb15b7ef84d1c9f2f856e6487c4ced86a6da977c7 (patch)
treec34afc739ede871b04ed0871c5f5da770d62d0a6 /libobjc/thr-win32.c
parent6b96ae3a28f6dff08a946ae48b8c33aae529fee3 (diff)
downloadgcc-b15b7ef84d1c9f2f856e6487c4ced86a6da977c7.zip
gcc-b15b7ef84d1c9f2f856e6487c4ced86a6da977c7.tar.gz
gcc-b15b7ef84d1c9f2f856e6487c4ced86a6da977c7.tar.bz2
Object.m (errno): Replaced by errno.h include.
2008-11-21 Kai Tietz <kai.tietz@onevision.com> * Object.m (errno): Replaced by errno.h include. (compare): Cast self to id to prevent warning on comparison. * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is already there. * sendmsg.c (__objc_print_dtable_stats): Remove type warnings. * thr-win32.c (__objc_thread_detach): Remove type warning. (__objc_thread_id): Likewise. * thr.c (__objc_thread_detach_functiont): Add __builtin_trap () for noreturn. From-SVN: r142087
Diffstat (limited to 'libobjc/thr-win32.c')
-rw-r--r--libobjc/thr-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libobjc/thr-win32.c b/libobjc/thr-win32.c
index cc4bb74..35a1c9e 100644
--- a/libobjc/thr-win32.c
+++ b/libobjc/thr-win32.c
@@ -70,7 +70,7 @@ __objc_thread_detach(void (*func)(void *arg), void *arg)
arg, 0, &thread_id)))
thread_id = 0;
- return (objc_thread_t)thread_id;
+ return (objc_thread_t)(size_t) thread_id;
}
/* Set the current thread's priority. */
@@ -151,7 +151,7 @@ __objc_thread_exit(void)
objc_thread_t
__objc_thread_id(void)
{
- return (objc_thread_t)GetCurrentThreadId();
+ return (objc_thread_t)(size_t) GetCurrentThreadId();
}
/* Sets the thread's local storage pointer. */