summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0627701)
raw | patch | inline | side by side (parent: 0627701)
author | Florian Forster <sifnfors@faui02h.informatik.uni-erlangen.de> | |
Mon, 22 Jan 2007 09:56:10 +0000 (10:56 +0100) | ||
committer | Florian Forster <sifnfors@faui02h.informatik.uni-erlangen.de> | |
Mon, 22 Jan 2007 09:56:10 +0000 (10:56 +0100) |
src/collectd.h | patch | blob | history |
diff --git a/src/collectd.h b/src/collectd.h
index 3c8d3516ecf1928c699cec8c0d1cad287c181143..c05b3e7bba65d543f17bcad77d35d92037ad2b43 100644 (file)
--- a/src/collectd.h
+++ b/src/collectd.h
# define assert(...) /* nop */
#endif
+/*
+ * This weird macro cascade forces the glibc to define `NAN'. I don't know
+ * another way to solve this, so more intelligent solutions are welcome. -octo
+ */
+#ifndef __USE_ISOC99
+# define DISABLE__USE_ISOC99 1
+# define __USE_ISOC99 1
+#endif
+#include <math.h>
+#ifdef DISABLE__USE_ISOC99
+# undef DISABLE__USE_ISOC99
+# undef __USE_ISOC99
+#endif
+
#if HAVE_DIRENT_H
# include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name)