From 32d96aabf7de0c4db5a8bf0dd214cea102b9c07c Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 1 Jul 2011 10:03:03 +0000 Subject: *** empty log message *** --- pthread.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index 3412e33..acb3775 100644 --- a/pthread.h +++ b/pthread.h @@ -663,7 +663,7 @@ enum { * ==================== * ==================== */ -#define PTHREAD_CANCELED ((void *) -1) +#define PTHREAD_CANCELED ((void *)(size_t) -1) /* @@ -691,9 +691,9 @@ struct pthread_once_t_ * ==================== * ==================== */ -#define PTHREAD_MUTEX_INITIALIZER ((pthread_mutex_t) -1) -#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER ((pthread_mutex_t) -2) -#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER ((pthread_mutex_t) -3) +#define PTHREAD_MUTEX_INITIALIZER ((pthread_mutex_t)(size_t) -1) +#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER ((pthread_mutex_t)(size_t) -2) +#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER ((pthread_mutex_t)(size_t) -3) /* * Compatibility with LinuxThreads @@ -701,11 +701,11 @@ struct pthread_once_t_ #define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP PTHREAD_RECURSIVE_MUTEX_INITIALIZER #define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP PTHREAD_ERRORCHECK_MUTEX_INITIALIZER -#define PTHREAD_COND_INITIALIZER ((pthread_cond_t) -1) +#define PTHREAD_COND_INITIALIZER ((pthread_cond_t)(size_t) -1) -#define PTHREAD_RWLOCK_INITIALIZER ((pthread_rwlock_t) -1) +#define PTHREAD_RWLOCK_INITIALIZER ((pthread_rwlock_t)(size_t) -1) -#define PTHREAD_SPINLOCK_INITIALIZER ((pthread_spinlock_t) -1) +#define PTHREAD_SPINLOCK_INITIALIZER ((pthread_spinlock_t)(size_t) -1) /* -- cgit v1.2.3