From: oetiker Date: Thu, 15 Nov 2007 14:36:39 +0000 (+0000) Subject: integrate rrd_nan_inf header X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=33dd65245b8f8f225ee120c47e496f15b457b3d5;p=rrdtool-all.git integrate rrd_nan_inf header git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1227 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/Makefile.am b/program/src/Makefile.am index 0a5b0e21..73a312de 100644 --- a/program/src/Makefile.am +++ b/program/src/Makefile.am @@ -52,7 +52,7 @@ noinst_HEADERS = \ rrd_getopt.h parsetime.h \ rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_rpncalc.h \ rrd_hw.h rrd_hw_math.h rrd_hw_update.h \ - rrd_nan_inf.h fnv.h rrd_graph.h \ + fnv.h rrd_graph.h \ rrd_is_thread_safe.h noinst_LTLIBRARIES = librrdupd.la diff --git a/program/src/rrd.h b/program/src/rrd.h index e53751d3..3030788e 100644 --- a/program/src/rrd.h +++ b/program/src/rrd.h @@ -57,6 +57,19 @@ extern "C" { #include #include /* for FILE */ + +/* Formerly rrd_nan_inf.h */ +#ifndef DNAN +# define DNAN set_to_DNAN() +#endif + +#ifndef DINF +# define DINF set_to_DINF() +#endif +double set_to_DNAN(void); +double set_to_DINF(void); +/* end of rrd_nan_inf.h */ + /* Transplanted from rrd_format.h */ typedef double rrd_value_t; /* the data storage type is * double */ diff --git a/program/src/rrd_nan_inf.h b/program/src/rrd_nan_inf.h deleted file mode 100644 index bc37c48b..00000000 --- a/program/src/rrd_nan_inf.h +++ /dev/null @@ -1,7 +0,0 @@ -#define DNAN set_to_DNAN() -#define DINF set_to_DINF() - -double set_to_DNAN( - void); -double set_to_DINF( - void);