1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

safe_mem.h: simplify conditional compilation for *BSD

This commit is contained in:
2024-03-27 19:57:27 +03:00
parent c5adf96adf
commit 7c81854fcb

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"