#ifndef _LDAP_PVT_THREAD_H
#define _LDAP_PVT_THREAD_H
-#include "portable.h"
+#include "ldap_cdefs.h"
#if defined( HAVE_PTHREADS )
/**********************************
#include <windows.h>
#include <process.h>
+LDAP_BEGIN_DECL
+
typedef HANDLE ldap_pvt_thread_t;
typedef int ldap_pvt_thread_attr_t;
typedef HANDLE ldap_pvt_thread_mutex_t;
#define LDAP_PVT_THREAD_CREATE_DETACHED 0
#define LDAP_PVT_THREAD_CREATE_JOINABLE 0
+LDAP_END_DECL
+
#else
/***********************************
# define HAVE_THREADS 1
#endif
+LDAP_BEGIN_DECL
+
LDAP_F int
ldap_pvt_thread_create LDAP_P(( ldap_pvt_thread_t * thread,
ldap_pvt_thread_attr_t *attr,
LDAP_F int
ldap_pvt_thread_mutex_unlock LDAP_P(( ldap_pvt_thread_mutex_t *mutex ));
-#include <ldap_cdefs.h>
-
typedef struct ldap_pvt_thread_rdwr_var {
int readers_reading;
int writer_writing;