Undefine __strnlen and strnlen.
authorJim Meyering <jim@meyering.net>
Sat, 6 May 2000 15:45:30 +0000 (15:45 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 May 2000 15:45:30 +0000 (15:45 +0000)
[!weak_alias]: Define __strnlen to strnlen.

lib/strnlen.c

index a2fcf73d7969abe270a87f89b51c63b5dd8497a6..89f8185267e0f8f3254dd87ff32c5c05ffa916bb 100644 (file)
 
 #include <string.h>
 
+#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.  */