From 1020dd41cc1c717979eefa1f74d72007dfd5b56c Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 24 Jul 2024 16:15:30 -0700 Subject: [PATCH] bzero() should be defined without special defines --- libc/str/str.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libc/str/str.h b/libc/str/str.h index 897fb2cfb..538acdeaa 100644 --- a/libc/str/str.h +++ b/libc/str/str.h @@ -173,16 +173,11 @@ char *__join_paths(char *, size_t, const char *, const char *) libcesque __wur; int __mkntpathat(int, const char *, int, char16_t[hasatleast 1024]); #endif /* _COSMO_SOURCE */ -#if defined(_COSMO_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || \ - defined(_POSIX_SOURCE) || \ - (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE + 0 < 200809L) || \ - (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE + 0 < 700) int bcmp(const void *, const void *, size_t) strlenesque; void bcopy(const void *, void *, size_t) memcpyesque; void bzero(void *, size_t) memcpyesque; char *index(const char *, int) strlenesque; char *rindex(const char *, int) strlenesque; -#endif COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */