From 906aad3d25673f8c5e4b5f86645e01e5fe5db45b Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 18 Apr 2010 16:33:54 +0000 Subject: [PATCH] make rrdtool compile with gcc 4.5 if -std=c99 is set -- anicka@suse.cz git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@2069 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_format.h b/program/src/rrd_format.h index cc65e970..9c5b9cd8 100644 --- a/program/src/rrd_format.h +++ b/program/src/rrd_format.h @@ -35,7 +35,7 @@ /* changed because microsecond precision requires another field */ #define RRD_VERSION "0004" #define RRD_VERSION3 "0003" -#define FLOAT_COOKIE 8.642135E130 +#define FLOAT_COOKIE ((double)8.642135E130) typedef union unival { unsigned long u_cnt; -- 2.30.2