/* strdup() is missing, declare our own version */
# undef strdup
# define strdup(s) ber_strdup(s)
-#else
+#elif !defined(_WIN32)
/* some systems fail to declare strdup */
+ /* Windows does not require this declaration */
LDAP_LIBC_F(char *) (strdup)();
#endif
* 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 )