diff options
author | Karl Williamson <khw@cpan.org> | 2016-09-10 08:46:18 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2016-09-17 17:22:26 -0600 |
commit | a791584fcdb7d580494680fbbcca3e3f880b78bf (patch) | |
tree | 7ad66db948541712617b691220346dd431f1de36 /perl.h | |
parent | 784d4f31222f1bf7421b1aab87276f4878d60363 (diff) | |
download | perl-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.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |