Skip to content

Commit

Permalink
Unconditionally define memcmp() if not sane
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
khwilliamson committed Sep 17, 2016
1 parent 784d4f3 commit a791584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions perl.h
Expand Up @@ -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
Expand Down

0 comments on commit a791584

Please sign in to comment.