Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1d1c42

Browse files
authored
remove configure check for memmove (#3716)
Python requires C implementations provide memmove, so we shouldn't need to check for it. The only place using this configure check was expat, where we can simply always define HAVE_MEMMOVE.
1 parent 5b9299d commit b1d1c42

4 files changed

Lines changed: 2 additions & 19 deletions

File tree

Modules/expat/expat_config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#define BYTEORDER 1234
1313
#endif
1414

15+
#define HAVE_MEMMOVE 1
16+
1517
#define XML_NS 1
1618
#define XML_DTD 1
1719
#define XML_CONTEXT_BYTES 1024

configure

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12253,19 +12253,6 @@ fi
1225312253
done
1225412254

1225512255

12256-
# Stuff for expat.
12257-
for ac_func in memmove
12258-
do :
12259-
ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
12260-
if test "x$ac_cv_func_memmove" = xyes; then :
12261-
cat >>confdefs.h <<_ACEOF
12262-
#define HAVE_MEMMOVE 1
12263-
_ACEOF
12264-
12265-
fi
12266-
done
12267-
12268-
1226912256
# check for long file support functions
1227012257
for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
1227112258
do :

configure.ac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3684,9 +3684,6 @@ AC_CHECK_FUNCS(forkpty,,
36843684
)
36853685
)
36863686

3687-
# Stuff for expat.
3688-
AC_CHECK_FUNCS(memmove)
3689-
36903687
# check for long file support functions
36913688
AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
36923689

pyconfig.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,6 @@
601601
/* Define to 1 if you have the `mbrtowc' function. */
602602
#undef HAVE_MBRTOWC
603603

604-
/* Define to 1 if you have the `memmove' function. */
605-
#undef HAVE_MEMMOVE
606-
607604
/* Define to 1 if you have the <memory.h> header file. */
608605
#undef HAVE_MEMORY_H
609606

0 commit comments

Comments
 (0)