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:
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