#include <_mingw.h>
#endif
+#ifndef __UNUSED_PARAM
+#define __UNUSED_PARAM(x) x
+#endif
+
#ifdef _LIBOBJC
/* This is necessary to prevent windef.h (included from windows.h) from
arg, 0, &thread_id)))
thread_id = 0;
- return (objc_thread_t) thread_id;
+ return (objc_thread_t) (INT_PTR) thread_id;
}
/* Set the current thread's priority. */
objc_thread_t
__gthread_objc_thread_id (void)
{
- return (objc_thread_t) GetCurrentThreadId ();
+ return (objc_thread_t) (INT_PTR) GetCurrentThreadId ();
}
/* Sets the thread's local storage pointer. */
/* Allocate a condition. */
int
-__gthread_objc_condition_allocate (objc_condition_t condition)
+__gthread_objc_condition_allocate (objc_condition_t __UNUSED_PARAM(condition))
{
/* Unimplemented. */
return -1;
/* Deallocate a condition. */
int
-__gthread_objc_condition_deallocate (objc_condition_t condition)
+__gthread_objc_condition_deallocate (objc_condition_t __UNUSED_PARAM(condition))
{
/* Unimplemented. */
return -1;
/* Wait on the condition */
int
-__gthread_objc_condition_wait (objc_condition_t condition, objc_mutex_t mutex)
+__gthread_objc_condition_wait (objc_condition_t __UNUSED_PARAM(condition),
+ objc_mutex_t __UNUSED_PARAM(mutex))
{
/* Unimplemented. */
return -1;
/* Wake up all threads waiting on this condition. */
int
-__gthread_objc_condition_broadcast (objc_condition_t condition)
+__gthread_objc_condition_broadcast (objc_condition_t __UNUSED_PARAM(condition))
{
/* Unimplemented. */
return -1;
/* Wake up one thread waiting on this condition. */
int
-__gthread_objc_condition_signal (objc_condition_t condition)
+__gthread_objc_condition_signal (objc_condition_t __UNUSED_PARAM(condition))
{
/* Unimplemented. */
return -1;