aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2018-05-30 16:19:01 -0400
committerCorinna Vinschen <corinna@vinschen.de>2018-06-01 12:09:12 +0200
commit59847b5d737191b8b42085d6447a8060074b8195 (patch)
treeb890dc214ca8089610f9098e90afb8bab818f6c9 /winsup/cygwin
parent8ac6b15487d4f58305ab1c7168c6ab8c449d9924 (diff)
downloadnewlib-59847b5d737191b8b42085d6447a8060074b8195.zip
newlib-59847b5d737191b8b42085d6447a8060074b8195.tar.gz
newlib-59847b5d737191b8b42085d6447a8060074b8195.tar.bz2
Declare the pthread_rwlock_* functions if __cplusplus >= 201402L
Some of these functions are used in the <shared_mutex> C++ header.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/include/pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h
index 3dfc2bc..fed6165 100644
--- a/winsup/cygwin/include/pthread.h
+++ b/winsup/cygwin/include/pthread.h
@@ -187,7 +187,7 @@ int pthread_spin_unlock (pthread_spinlock_t *);
#endif
/* RW Locks */
-#if __XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112
+#if __XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112 || __cplusplus >= 201402L
int pthread_rwlock_destroy (pthread_rwlock_t *rwlock);
int pthread_rwlock_init (pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr);
int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock);