summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>2011-07-01 10:03:03 +0000
committerrpj <rpj>2011-07-01 10:03:03 +0000
commit32d96aabf7de0c4db5a8bf0dd214cea102b9c07c (patch)
tree9a5e3c5360a78f6e78e465912f5ec5c5f8fd2920 /pthread.h
parentc3973648250aeb062d7d99a71257e2287c18a1ae (diff)
*** empty log message ***
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h14
1 files changed, 7 insertions, 7 deletions
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)
/*