Browse Source

Fix compilation problem whit the following config options:
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT is not set
by making WORD_COPY_FWD macros visible.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>

Carmelo Amoroso 16 years ago
parent
commit
9efc3f5022
2 changed files with 1 additions and 3 deletions
  1. 0 3
      libc/string/generic/memcopy.h
  2. 1 0
      libc/string/generic/memcpy.c

+ 0 - 3
libc/string/generic/memcopy.h

@@ -107,7 +107,6 @@ typedef unsigned char byte;
 	}								      \
 	}								      \
     } while (0)
     } while (0)
 
 
-#ifdef __ARCH_HAS_BWD_MEMCPY__
 /* Copy *up to* NBYTES bytes from SRC_BP to DST_BP, with
 /* Copy *up to* NBYTES bytes from SRC_BP to DST_BP, with
    the assumption that DST_BP is aligned on an OPSIZ multiple.  If
    the assumption that DST_BP is aligned on an OPSIZ multiple.  If
    not all bytes could be easily copied, store remaining number of bytes
    not all bytes could be easily copied, store remaining number of bytes
@@ -126,8 +125,6 @@ typedef unsigned char byte;
       (nbytes_left) = (nbytes) % OPSIZ;					      \
       (nbytes_left) = (nbytes) % OPSIZ;					      \
     } while (0)
     } while (0)
 
 
-#endif
-
 /* Copy *up to* NBYTES_TO_COPY bytes from SRC_END_PTR to DST_END_PTR,
 /* Copy *up to* NBYTES_TO_COPY bytes from SRC_END_PTR to DST_END_PTR,
    beginning at the words (of type op_t) right before the pointers and
    beginning at the words (of type op_t) right before the pointers and
    continuing towards smaller addresses.  May take advantage of that
    continuing towards smaller addresses.  May take advantage of that

+ 1 - 0
libc/string/generic/memcpy.c

@@ -22,6 +22,7 @@
 #include <string.h>
 #include <string.h>
 #include "memcopy.h"
 #include "memcopy.h"
 #include "pagecopy.h"
 #include "pagecopy.h"
+#include "_memcpy_fwd.c"
 
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
 /* Experimentally off - libc_hidden_proto(memcpy) */