From: Jim Meyering Date: Sat, 6 May 2000 15:45:30 +0000 (+0000) Subject: Undefine __strnlen and strnlen. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=007fb8a20056b14f651f2d5223c100a61ff2e80a;p=pspp Undefine __strnlen and strnlen. [!weak_alias]: Define __strnlen to strnlen. --- diff --git a/lib/strnlen.c b/lib/strnlen.c index a2fcf73d79..89f8185267 100644 --- a/lib/strnlen.c +++ b/lib/strnlen.c @@ -19,6 +19,13 @@ #include +#undef __strnlen +#undef strnlen + +#ifndef weak_alias +# define __strnlen strnlen +#endif + /* Find the length of STRING, but scan at most MAXLEN characters. If no '\0' terminator is found in that many characters, return MAXLEN. */