1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-26 02:29:50 +05:30

safe_mem.h: simplify conditional compilation for *BSD

This commit is contained in:
Intel A80486DX2-66 2024-03-27 19:57:27 +03:00
parent c5adf96adf
commit 7c81854fcb
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -32,8 +32,7 @@ typedef unsigned char byte;
malloc((size_t) (nmemb) * (size_t) (size))
/* secure_erase(dest, count): erases memory explicitly */
#if defined(__OpenBSD__) && !defined(SAFE_MEM_OLD_BSD) || \
defined(__FreeBSD__) && !defined(SAFE_MEM_OLD_BSD)
#if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SAFE_MEM_OLD_BSD)
# define NO_SECURE_ERASE_WARRANTY 0
# define SECURE_ERASE_WARRANTY "OpenBSD/FreeBSD: explicit_bzero"