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:
authorAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2020-01-28 21:10:56 +0300
committerAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2020-01-28 21:10:56 +0300
commit4ba903d31dcc9293b2e6737c08349d0680db7056 (patch)
tree9f54da155173a62b01a917465a92d41f2c911590 /include/zbxtypes.h
parent927a976cfd58ab30010cb405ca8844d36af5325f (diff)
........S. [ZBXNEXT-1736] changed ZBX_FS_DBL macro to support double precision values
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r--include/zbxtypes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h
index cc014f90407..73129c3ab89 100644
--- a/include/zbxtypes.h
+++ b/include/zbxtypes.h
@@ -159,8 +159,9 @@ typedef off_t zbx_offset_t;
#endif /* _WINDOWS */
-#define ZBX_FS_DBL "%lf"
-#define ZBX_FS_DBL_EXT(p) "%." #p "lf"
+#define ZBX_FS_ARG_LIST(m, a) m(a)
+#define ZBX_FS_DBL_EXT(p) "%." #p "g"
+#define ZBX_FS_DBL ZBX_FS_ARG_LIST(ZBX_FS_DBL_EXT, DECIMAL_DIG)
#define ZBX_PTR_SIZE sizeof(void *)
#define ZBX_FS_SIZE_T ZBX_FS_UI64