From e5d10780eff394af075c1e394605fb5c915b3688 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 9 Mar 2023 02:13:58 +0300 Subject: Fix compilation with optimization on Gentoo --- third_party/newlib/string/memset.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'third_party/newlib/string/memset.c') diff --git a/third_party/newlib/string/memset.c b/third_party/newlib/string/memset.c index e8e667a..8814b76 100644 --- a/third_party/newlib/string/memset.c +++ b/third_party/newlib/string/memset.c @@ -33,6 +33,10 @@ QUICKREF #define UNALIGNED(X) ((long)X & (LBLOCKSIZE - 1)) #define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE) +#if defined(memset) +#undef memset +#endif + void * __inhibit_loop_to_libcall memset (void *m, -- cgit v1.2.3