Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktors Tjarve <viktors.tjarve@zabbix.com>2020-09-24 15:31:54 +0300
committerViktors Tjarve <viktors.tjarve@zabbix.com>2020-09-24 15:31:54 +0300
commit158b70b2aac3012901942fa9988b2178564db6ec (patch)
treed498490272c1376cb2562754c2a8fadd0015eebd /include/zbxtypes.h
parent345811bb797ef9f1b8008b570bb9fa0316041395 (diff)
........S. [ZBXNEXT-6184] added formatting macro functions fmttime and fmtnum
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r--include/zbxtypes.h4
1 files changed, 4 insertions, 0 deletions
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