diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-07-10 11:28:24 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-07-10 11:28:24 +0000 |
commit | a6cc41194dbe50598d9f33497d88c8589cd7a8c0 (patch) | |
tree | b2660dbedb85b00f89e7a2f39dc13d7dea631713 /perl.h | |
parent | eeb9de022215ff745a61968bf9408965f4687655 (diff) | |
download | perl-a6cc41194dbe50598d9f33497d88c8589cd7a8c0.tar.gz |
Add Russ Allbery's public domain implementations of strlcat and
strlcpy as Perl_my_strlcat and Perl_my_strlcpy to the Perl core.
Thanks Russ!
p4raw-id: //depot/perl@28525
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1488,6 +1488,18 @@ int sockatmark(int); # define PERL_MY_VSNPRINTF_GUARDED #endif +#ifdef HAS_STRLCAT +# define my_strlcat strlcat +#else +# define my_strlcat Perl_my_strlcat +#endif + +#ifdef HAS_STRLCPY +# define my_strlcpy strlcpy +#else +# define my_strlcpy Perl_my_strlcpy +#endif + /* Configure gets this right but the UTS compiler gets it wrong. -- Hal Morris <hom00@utsglobal.com> */ #ifdef UTS |