Remove duplicated implementations for bzero()
Define bzero() in a central place if HAVE_BZERO is not set
This commit is contained in:
parent
2dbd837c41
commit
4a83727bf6
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue