about summary refs log tree commit diff
path: root/string/memset.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/memset.c')
-rw-r--r--string/memset.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/string/memset.c b/string/memset.c
index 4ac8cb6426..950445c51c 100644
--- a/string/memset.c
+++ b/string/memset.c
@@ -18,11 +18,13 @@
 #include <string.h>
 #include <memcopy.h>
 
-#undef memset
+#ifndef MEMSET
+# define MEMSET memset
+#endif
 
 void *
 inhibit_loop_to_libcall
-memset (void *dstpp, int c, size_t len)
+MEMSET (void *dstpp, int c, size_t len)
 {
   long int dstp = (long int) dstpp;
 
@@ -85,4 +87,4 @@ memset (void *dstpp, int c, size_t len)
 
   return dstpp;
 }
-libc_hidden_builtin_def (memset)
+libc_hidden_builtin_def (MEMSET)