aboutsummaryrefslogtreecommitdiff
path: root/src/util_ct.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util_ct.h')
-rw-r--r--src/util_ct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util_ct.h b/src/util_ct.h
index c8eca2f..1aadbe2 100644
--- a/src/util_ct.h
+++ b/src/util_ct.h
@@ -5,3 +5,7 @@
#define PRNE_LIMIT_ENUM(t,x,l) _Static_assert(x<=l,"enum overflow: "#t)
#define prne_op_spaceship(a, b) (a == b ? 0 : a < b ? -1 : 1)
+
+#if !defined(memzero)
+#define memzero(addr, len) memset(addr, 0, len)
+#endif