MXE fix for os_libc.h

This commit is contained in:
Colton G. Rushton 2020-05-16 17:14:10 -03:00 committed by GitHub
parent 3d7bdc300c
commit e42e1587b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -4,7 +4,13 @@
#include "ultratypes.h"
// Old deprecated functions from strings.h, replaced by memcpy/memset.
#ifdef NO_BZERO
#include <string.h>
#define bzero(buf, size) memset(buf, 0, size)
#define bcopy(src, dst, size) memcpy(dst, src, size)
#else
extern void bcopy(const void *, void *, size_t);
extern void bzero(void *, size_t);
#endif
#endif /* !_OS_LIBC_H_ */