diff --git a/src/rrd_tool.h b/src/rrd_tool.h
index f39cbe3d536c06cedf2ff870f8e04fda34a7db9d..37f4a7ed53447dd5b2d4945b690d8191955e86a0 100644 (file)
--- a/src/rrd_tool.h
+++ b/src/rrd_tool.h
#ifndef _RRD_TOOL_H
#define _RRD_TOOL_H
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
#include "../confignt/config.h"
#else
#ifdef HAVE_CONFIG_H
#include "rrd.h"
-#ifndef WIN32
-
-/* unix-only includes */
-#ifndef isnan
-int isnan(double value);
-#endif
-
-#else
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
/* Win32 only includes */
char* ctime_r(const time_t *timep, char* result);
struct tm* gmtime_r(const time_t *timep, struct tm* result);
char *strtok_r(char *str, const char *sep, char **last);
+
+#else
+
+/* unix-only includes */
+#ifndef isnan
+int isnan(double value);
+#endif
+
#endif
/* local include files -- need to be after the system ones */