summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/macro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index e5c33ce561..80cb2f0892 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -158,6 +158,8 @@ static inline size_t ALIGN_TO(size_t l, size_t ali) {
#define memzero(x,l) (memset((x), 0, (l)))
#define zero(x) (memzero(&(x), sizeof(x)))
+#define CHAR_TO_STR(x) ((char[2]) { x, 0 })
+
#define char_array_0(x) x[sizeof(x)-1] = 0;
#define IOVEC_SET_STRING(i, s) \