Declare the pthread_rwlock_* functions if __cplusplus >= 201402L

Some of these functions are used in the <shared_mutex> C++ header.
This commit is contained in:
Ken Brown 2018-05-30 16:19:01 -04:00 committed by Corinna Vinschen
parent 8ac6b15487
commit 59847b5d73
1 changed files with 1 additions and 1 deletions

View File

@ -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);