from jon@symas.com - misc MSVC cleanup

This commit is contained in:
Howard Chu 2001-12-17 22:40:10 +00:00
parent 8119f8e922
commit c37fa6d165
4 changed files with 15 additions and 8 deletions

View file

@ -62,9 +62,11 @@ LDAP_F(char *) ldap_pvt_strtok LDAP_P(( char *str,
* 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 )

View file

@ -55,12 +55,6 @@ LDAP_LUTIL_F(char*)(lutil_getpass) LDAP_P((const char *getpass));
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)

View file

@ -106,6 +106,11 @@ lutil_progname LDAP_P((
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] );
@ -132,7 +137,8 @@ LDAP_LUTIL_V (int) is_NT_Service;
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 */

View file

@ -122,6 +122,11 @@
* 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.
*/