summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-09-10 08:46:18 -0600
committerKarl Williamson <khw@cpan.org>2016-09-17 17:22:26 -0600
commita791584fcdb7d580494680fbbcca3e3f880b78bf (patch)
tree7ad66db948541712617b691220346dd431f1de36 /perl.h
parent784d4f31222f1bf7421b1aab87276f4878d60363 (diff)
downloadperl-a791584fcdb7d580494680fbbcca3e3f880b78bf.tar.gz
Unconditionally define memcmp() if not sane
Prior to this commit, if there was a #define for memcmp that invoked a version that Configure deemed to not be sufficient for normal use, it was retained, so that perl used the defective version. This apparently hasn't been a problem in the field, but I realized the potential issue doing code reading, and am correcting it.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl.h b/perl.h
index f1914a8b56..454304b137 100644
--- a/perl.h
+++ b/perl.h
@@ -1041,9 +1041,8 @@ EXTERN_C int usleep(unsigned int);
# endif
# endif
#else
-# ifndef memcmp
-# define memcmp my_memcmp
-# endif
+# undef memcmp
+# define memcmp my_memcmp
#endif /* HAS_MEMCMP && HAS_SANE_MEMCMP */
#ifndef memzero