From: oetiker Date: Sun, 18 Apr 2010 16:33:54 +0000 (+0000) Subject: make rrdtool compile with gcc 4.5 if -std=c99 is set -- anicka@suse.cz X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=965b570fe98ee533ed72f4d65d171a97bdf422d1 make rrdtool compile with gcc 4.5 if -std=c99 is set -- anicka@suse.cz git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2069 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_format.h b/src/rrd_format.h index 75a3c52..4046af2 100644 --- a/src/rrd_format.h +++ b/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;