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.tokkee.org/?a=commitdiff_plain;h=985896e119d02856bbecf62ea578256eb0c0d77f;p=rrdtool-all.git 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.2@2069 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_format.h b/program/src/rrd_format.h index 32a3a536..abd39e62 100644 --- a/program/src/rrd_format.h +++ b/program/src/rrd_format.h @@ -22,7 +22,7 @@ /* #define RRD_VERSION "0002" */ /* changed because microsecond precision requires another field */ #define RRD_VERSION "0003" -#define FLOAT_COOKIE 8.642135E130 +#define FLOAT_COOKIE ((double)8.642135E130) #include "rrd_nan_inf.h"