diff options
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r-- | include/zbxtypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h index f637de68f1c..47d7d0cb137 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -120,6 +120,7 @@ typedef off_t zbx_offset_t; #define ZBX_STR2UCHAR(var, string) var = (unsigned char)atoi(string) #define ZBX_CONST_STRING(str) ""str +#define ZBX_CONST_STRLEN(str) (sizeof(ZBX_CONST_STRING(str)) - 1) typedef struct { |