projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
detect if stdint.h is available. if not, use inttypes. this should fix #239 and make...
[rrdtool.git]
/
src
/
rrd_client.h
diff --git
a/src/rrd_client.h
b/src/rrd_client.h
index
90b78f8
..
787c2b6
100644
(file)
--- a/
src/rrd_client.h
+++ b/
src/rrd_client.h
@@
-22,8
+22,24
@@
#ifndef __RRD_CLIENT_H
#define __RRD_CLIENT_H 1
#ifndef __RRD_CLIENT_H
#define __RRD_CLIENT_H 1
+#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
#ifndef WIN32
-#include <stdint.h>
+# 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;
#else
# include <stdlib.h>
typedef signed char int8_t;