Remove duplicated implementations for bzero()

Define bzero() in a central place if HAVE_BZERO is not set
This commit is contained in:
Patrick Gansterer 2014-02-28 13:17:49 +01:00 committed by Andy Green
parent 2dbd837c41
commit 4a83727bf6
3 changed files with 4 additions and 4 deletions

View file

@ -109,6 +109,10 @@
#define compatible_close(fd) close(fd);
#endif
#ifndef HAVE_BZERO
#define bzero(b, len) (memset((b), '\0', (len)), (void) 0)
#endif
#ifndef HAVE_STRERROR
#define strerror(x) ""
#endif

View file

@ -61,8 +61,6 @@ typedef unsigned __int64 u_int64_t;
#endif
#endif
#define bzero(b, len) (memset((b), '\0', (len)), (void) 0)
#else
#include <sys/stat.h>

View file

@ -9,8 +9,6 @@
#pragma warning(disable : 4996)
#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
#define MSG_NOSIGNAL 0
#define SHUT_RDWR SD_BOTH