Browse files

place nice with other libraries.

  • Loading branch information...
1 parent daefeb5 commit 39e282254b20e4eb262dd4c0f3064001cace5d59 Sterling Hughes committed May 30, 2001
Showing with 6 additions and 4 deletions.
  1. +4 −2 main/php.h
  2. +1 −1 main/strlcat.c
  3. +1 −1 main/strlcpy.c
View
6 main/php.h
@@ -96,11 +96,13 @@
}
#ifndef HAVE_STRLCPY
-PHPAPI size_t strlcpy(char *dst, const char *src, size_t siz);
+PHPAPI size_t php_strlcpy(char *dst, const char *src, size_t siz);
+#define strlcpy php_strlcpy
#endif
#ifndef HAVE_STRLCAT
-PHPAPI size_t strlcat(char *dst, const char *src, size_t siz);
+PHPAPI size_t php_strlcat(char *dst, const char *src, size_t siz);
+#define strlcat php_strlcat
#endif
#ifndef HAVE_STRTOK_R
View
2 main/strlcat.c
@@ -44,7 +44,7 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp
* will be copied. Always NUL terminates (unless siz == 0).
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
-PHPAPI size_t strlcat(dst, src, siz)
+PHPAPI size_t php_strlcat(dst, src, siz)
char *dst;
const char *src;
size_t siz;
View
2 main/strlcpy.c
@@ -43,7 +43,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp
* will be copied. Always NUL terminates (unless siz == 0).
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
-PHPAPI size_t strlcpy(dst, src, siz)
+PHPAPI size_t php_strlcpy(dst, src, siz)
char *dst;
const char *src;
size_t siz;

0 comments on commit 39e2822

Please sign in to comment.