]> git.sur5r.net Git - openldap/blobdiff - include/ac/string.h
Added dnPretty2/dnNormalize2 using preallocated destination berval
[openldap] / include / ac / string.h
index 5d7cf3d7a1843a6d40c11b4b2d37aa6b8b0769be..0b356638358089ef2c3cb085b41e028cda59ae86 100644 (file)
@@ -51,8 +51,9 @@ LDAP_F(char *) ldap_pvt_strtok LDAP_P(( char *str,
        /* 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
 
@@ -61,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 )