1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-27 05:40:17 +05:30

safe_mem.h: add missing inclusions of string.h

This commit is contained in:
Intel A80486DX2-66 2024-03-24 17:29:04 +03:00
parent c2b3caf728
commit 324d23d6a6
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -43,10 +43,13 @@
# define NO_SECURE_ERASE_WARRANTY 0 # define NO_SECURE_ERASE_WARRANTY 0
# define SECURE_ERASE_WARRANTY "C11+: memset_s" # define SECURE_ERASE_WARRANTY "C11+: memset_s"
# include <string.h>
# define secure_erase(dest, count) memset_s(dest, count, 0, count) # define secure_erase(dest, count) memset_s(dest, count, 0, count)
#else #else
# define NO_SECURE_ERASE_WARRANTY 1 # define NO_SECURE_ERASE_WARRANTY 1
# include <string.h>
# define __observe__(ptr) do { \ # define __observe__(ptr) do { \
if (*ptr == 0) { \ if (*ptr == 0) { \
++(*ptr); \ ++(*ptr); \