about summary refs log tree commit diff
path: root/libio/iogetwline.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iogetwline.c')
-rw-r--r--libio/iogetwline.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libio/iogetwline.c b/libio/iogetwline.c
index e60a590cc4..535f90339e 100644
--- a/libio/iogetwline.c
+++ b/libio/iogetwline.c
@@ -28,10 +28,6 @@
 #include <string.h>
 #include <wchar.h>
 
-#ifdef _LIBC
-# define wmemcpy __wmemcpy
-#endif
-
 _IO_size_t
 _IO_getwline (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim,
 	      int extract_delim)
@@ -98,12 +94,12 @@ _IO_getwline_info (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim,
 		  if (extract_delim > 0)
 		    ++len;
 		}
-	      wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr,
-		       len);
+	      __wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr,
+			 len);
 	      fp->_wide_data->_IO_read_ptr = t;
 	      return old_len + len;
 	    }
-	  wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len);
+	  __wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len);
 	  fp->_wide_data->_IO_read_ptr += len;
 	  ptr += len;
 	  n -= len;