+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
+#include "../win32/config.h"
+#else
+#ifdef HAVE_CONFIG_H
+#include "../rrd_config.h"
+#endif
+#endif
+
+#ifndef WIN32
+# ifdef HAVE_STDINT_H
+# include <stdint.h>
+# else
+# ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+# else
+# error "you should have stdint.h or inttypes.h to compile this"
+# endif
+# endif
+#else
+# include <stdlib.h>
+ typedef signed char int8_t;
+ typedef unsigned char uint8_t;
+ typedef signed int int16_t;
+ typedef unsigned int uint16_t;
+ typedef signed long int int32_t;
+ typedef unsigned long int uint32_t;
+ typedef signed long long int int64_t;
+ typedef unsigned long long int uint64_t;
+#endif
+