(GX) Buildfix

This commit is contained in:
twinaphex 2015-03-17 06:14:44 +01:00
parent 7be0b9f7f4
commit f59aa94ea1

View File

@ -59,9 +59,11 @@
#define OSInitCond(cond) LWP_CondInit(cond)
#endif
#if 0
#ifndef OSSignalCond
#define OSSignalCond(cond) LWP_ThreadSignal(cond)
#endif
#endif
#ifndef OSWaitCond
#define OSWaitCond(cond, mutex) LWP_CondWait(cond, mutex)
@ -93,8 +95,8 @@ typedef OSThread pthread_t;
typedef mutex_t pthread_mutex_t;
typedef void* pthread_mutexattr_t;
typedef int pthread_attr_t;
typedef cond_t pthread_cond_t;
typedef cond_t pthread_condattr_t;
typedef OSCond pthread_cond_t;
typedef OSCond pthread_condattr_t;
static inline int pthread_create(pthread_t *thread,
const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg)
@ -168,7 +170,8 @@ static inline int pthread_cond_init(pthread_cond_t *cond,
static inline int pthread_cond_signal(pthread_cond_t *cond)
{
return OSSignalCond(*cond);
OSSignalCond(*cond);
return 0;
}
static inline int pthread_cond_broadcast(pthread_cond_t *cond)