*
*/
+#include <ldap_cdefs.h>
+
+LDAP_BEGIN_DECL
+
typedef struct rdwr_var {
int readers_reading;
int writer_writing;
#define pthread_rdwrattr_default NULL;
-int pthread_rdwr_init_np(pthread_rdwr_t *rdwrp, pthread_rdwrattr_t *attrp);
-int pthread_rdwr_rlock_np(pthread_rdwr_t *rdwrp);
-int pthread_rdwr_runlock_np(pthread_rdwr_t *rdwrp);
-int pthread_rdwr_wlock_np(pthread_rdwr_t *rdwrp);
-int pthread_rdwr_wunlock_np(pthread_rdwr_t *rdwrp);
+LDAP_F int pthread_rdwr_init_np LDAP_P((pthread_rdwr_t *rdwrp, pthread_rdwrattr_t *attrp));
+LDAP_F int pthread_rdwr_rlock_np LDAP_P((pthread_rdwr_t *rdwrp));
+LDAP_F int pthread_rdwr_runlock_np LDAP_P((pthread_rdwr_t *rdwrp));
+LDAP_F int pthread_rdwr_wlock_np LDAP_P((pthread_rdwr_t *rdwrp));
+LDAP_F int pthread_rdwr_wunlock_np LDAP_P((pthread_rdwr_t *rdwrp));
#ifdef LDAP_DEBUG
-int pthread_rdwr_rchk_np(pthread_rdwr_t *rdwrp);
-int pthread_rdwr_wchk_np(pthread_rdwr_t *rdwrp);
-int pthread_rdwr_rwchk_np(pthread_rdwr_t *rdwrp);
+LDAP_F int pthread_rdwr_rchk_np LDAP_P((pthread_rdwr_t *rdwrp));
+LDAP_F int pthread_rdwr_wchk_np LDAP_P((pthread_rdwr_t *rdwrp));
+LDAP_F int pthread_rdwr_rwchk_np LDAP_P((pthread_rdwr_t *rdwrp));
#endif /* LDAP_DEBUG */
+LDAP_END_DECL
+
#endif /* _LTHREAD_RDWR_H */