* we need them declared so we can obtain pointers to them
*/
-/* In Mingw32, strcasecmp is not in the C library, so we don't LIBC_F it */
+/* we don't want these declared for Windows or Mingw */
+#ifndef _WIN32
int (strcasecmp)();
int (strncasecmp)();
+#endif
#ifndef SAFEMEMCPY
# if defined( HAVE_MEMMOVE )
LDAP_LIBC_V (int) optind, opterr, optopt;
#endif
-#ifndef HAVE_TEMPNAM
- LDAP_LUTIL_F(char *)(tempnam) LDAP_P((
- const char *tmpdir,
- const char *prefix));
-#endif
-
/* use lutil file locking */
#define ldap_lockf(x) lutil_lockf(x)
#define ldap_unlockf(x) lutil_unlockf(x)
int argc,
char *argv[] ));
+#ifndef HAVE_MKSTEMP
+LDAP_LUTIL_F( int )
+mkstemp LDAP_P (( char * template ));
+#endif
+
/* sockpair.c */
LDAP_LUTIL_F( int )
lutil_pair( ber_socket_t sd[2] );
LDAP_LUTIL_V (ldap_pvt_thread_cond_t) started_event;
#endif /* _LDAP_PVT_THREAD_H */
-#ifdef _WINSVC_H
+/* macros are different between Windows and Mingw */
+#if defined(_WINSVC_H) || defined(_WINSVC_)
LDAP_LUTIL_V (SERVICE_STATUS) SLAPDServiceStatus;
LDAP_LUTIL_V (SERVICE_STATUS_HANDLE) hSLAPDServiceStatus;
#endif /* _WINSVC_H */
* see queue(3) for instructions on how to use
*/
+/* The latest set of Windows headers defines SLIST_ENTRY in WINNT.H */
+#ifdef SLIST_ENTRY
+#undef SLIST_ENTRY
+#endif
+
/*
* Singly-linked List definitions.
*/