memmove is specified since POSIX.1-2001 and C89, and bcopy is deprecated.
check_include_file("unistd.h" HAVE_UNISTD_H)\r
\r
check_symbol_exists("getpagesize" "unistd.h" HAVE_GETPAGESIZE)\r
-check_symbol_exists("bcopy" "strings.h" HAVE_BCOPY)\r
-check_symbol_exists("memmove" "string.h" HAVE_MEMMOVE)\r
check_symbol_exists("mmap" "sys/mman.h" HAVE_MMAP)\r
check_symbol_exists("getrandom" "sys/random.h" HAVE_GETRANDOM)\r
\r
AC_C_CONST
AC_TYPE_SIZE_T
-AC_CHECK_FUNCS(memmove bcopy)
-
AC_ARG_WITH([xmlwf], [
AS_HELP_STRING([--without-xmlwf], [do not build xmlwf])], [], [with_xmlwf=yes])
/* Define to 1 if you have the `arc4random_buf' function. */\r
#cmakedefine HAVE_ARC4RANDOM_BUF\r
\r
-/* Define to 1 if you have the `bcopy' function. */\r
-#cmakedefine HAVE_BCOPY\r
-\r
/* Define to 1 if you have the <dlfcn.h> header file. */\r
#cmakedefine HAVE_DLFCN_H\r
\r
/* Define to 1 if you have the `bsd' library (-lbsd). */\r
#cmakedefine HAVE_LIBBSD\r
\r
-/* Define to 1 if you have the `memmove' function. */\r
-#cmakedefine HAVE_MEMMOVE\r
-\r
/* Define to 1 if you have the <memory.h> header file. */\r
#cmakedefine HAVE_MEMORY_H\r
\r
/* we will assume all Windows platforms are little endian */
#define BYTEORDER 1234
-/* Windows has memmove() available. */
-#define HAVE_MEMMOVE
-
-
#endif /* !defined(HAVE_EXPAT_CONFIG_H) */
/* Do safe (NULL-aware) pointer arithmetic */
#define EXPAT_SAFE_PTR_DIFF(p, q) (((p) && (q)) ? ((p) - (q)) : 0)
-/* Handle the case where memmove() doesn't exist. */
-#ifndef HAVE_MEMMOVE
-#ifdef HAVE_BCOPY
-#define memmove(d,s,l) bcopy((s),(d),(l))
-#else
-#error memmove does not exist on this platform, nor is a substitute available
-#endif /* HAVE_BCOPY */
-#endif /* HAVE_MEMMOVE */
-
#include "internal.h"
#include "xmltok.h"
#include "xmlrole.h"