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:
		
				
					committed by
					
						
						Corinna Vinschen
					
				
			
			
				
	
			
			
			
						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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user