mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 11:30:56 +08:00
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:
parent
8ac6b15487
commit
59847b5d73
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user