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=4711139e9d9dae2bd34ce56bf1e77778d375c5fb;p=rrdtool.git integrate rrd_nan_inf header git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1227 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/Makefile.am b/src/Makefile.am index 0a5b0e2..73a312d 100644 --- a/src/Makefile.am +++ b/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/src/rrd.h b/src/rrd.h index e53751d..3030788 100644 --- a/src/rrd.h +++ b/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/src/rrd_nan_inf.h b/src/rrd_nan_inf.h deleted file mode 100644 index bc37c48..0000000 --- a/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);