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:
parent
c2b3caf728
commit
324d23d6a6
@ -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); \
|
||||||
|
Loading…
Reference in New Issue
Block a user