integrate rrd_nan_inf header
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 15 Nov 2007 14:36:39 +0000 (14:36 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 15 Nov 2007 14:36:39 +0000 (14:36 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1227 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/Makefile.am
src/rrd.h
src/rrd_nan_inf.h [deleted file]

index 0a5b0e2..73a312d 100644 (file)
@@ -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
index e53751d..3030788 100644 (file)
--- a/src/rrd.h
+++ b/src/rrd.h
@@ -57,6 +57,19 @@ extern    "C" {
 #include <time.h>
 #include <stdio.h>      /* 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 (file)
index bc37c48..0000000
+++ /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);