summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbb/libbb.h4
-rw-r--r--libbb/xfuncs.c7
2 files changed, 0 insertions, 11 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h
index 0385d55..860dacd 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -345,8 +345,4 @@ extern const char * const can_not_create_raw_socket;
#define fork vfork
#endif
-/* Stupid gcc always includes its own builtin strlen()... */
-extern size_t xstrlen(const char *string);
-#define strlen(x) xstrlen(x)
-
#endif /* __LIBBB_H__ */
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index ee90e60..57c6980 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -85,13 +85,6 @@ FILE *xfopen(const char *path, const char *mode)
return fp;
}
-/* Stupid gcc always includes its own builtin strlen()... */
-#undef strlen
-size_t xstrlen(const char *string)
-{
- return(strlen(string));
-}
-
/* END CODE */
/*
Local Variables: