From 158b70b2aac3012901942fa9988b2178564db6ec Mon Sep 17 00:00:00 2001 From: Viktors Tjarve Date: Thu, 24 Sep 2020 15:31:54 +0300 Subject: ........S. [ZBXNEXT-6184] added formatting macro functions fmttime and fmtnum --- include/zbxtypes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/zbxtypes.h') diff --git a/include/zbxtypes.h b/include/zbxtypes.h index 0d3a5b421ed..9495e412e7e 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -214,4 +214,8 @@ zbx_uint128_t; /* macro to test if a signed value has been assigned to unsigned type (char, short, int, long long) */ #define ZBX_IS_TOP_BIT_SET(x) (0 != ((__UINT64_C(1) << ((sizeof(x) << 3) - 1)) & (x))) +#if defined(_WINDOWS) + #define localtime_r(x, y) localtime_s(y, x) +#endif + #endif -- cgit v1.2.3