mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
ITS#10123 Adjust our prototypes for both K&R and C2x compatibility
This commit is contained in:
parent
92cca70426
commit
1bdb67541a
1 changed files with 3 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ LDAP_F(char *) ldap_pvt_strtok LDAP_P(( char *str,
|
||||||
#elif !defined(_WIN32)
|
#elif !defined(_WIN32)
|
||||||
/* some systems fail to declare strdup */
|
/* some systems fail to declare strdup */
|
||||||
/* Windows does not require this declaration */
|
/* Windows does not require this declaration */
|
||||||
LDAP_LIBC_F(char *) (strdup)();
|
LDAP_LIBC_F(char *) (strdup) LDAP_P((const char *s));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -68,8 +68,8 @@ LDAP_F(char *) ldap_pvt_strtok LDAP_P(( char *str,
|
||||||
|
|
||||||
/* we don't want these declared for Windows or Mingw */
|
/* we don't want these declared for Windows or Mingw */
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
int (strcasecmp)();
|
LDAP_LIBC_F(int) (strcasecmp) LDAP_P((const char *s1, const char *s2));
|
||||||
int (strncasecmp)();
|
LDAP_LIBC_F(int) (strncasecmp) LDAP_P((const char *s1, const char *s2, size_t n));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SAFEMEMCPY
|
#ifndef SAFEMEMCPY
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue