summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tree_debug.h4
-rw-r--r--test/sorted_array_test.c4
-rw-r--r--test/tree_test.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/tree_debug.h b/src/tree_debug.h
index c2af4bf..74f4e0e 100644
--- a/src/tree_debug.h
+++ b/src/tree_debug.h
@@ -17,6 +17,10 @@
#ifndef ZIX_TREE_DEBUG_H
#define ZIX_TREE_DEBUG_H
+#ifndef _MSC_VER
+# include <inttypes.h>
+#endif
+
#ifdef ZIX_TREE_DUMP
static void
zix_tree_print(ZixTreeNode* node, int level)
diff --git a/test/sorted_array_test.c b/test/sorted_array_test.c
index 63c076b..13f7f32 100644
--- a/test/sorted_array_test.c
+++ b/test/sorted_array_test.c
@@ -21,6 +21,10 @@
#include <sys/time.h>
+#ifndef _MSC_VER
+# include <inttypes.h>
+#endif
+
#include "zix/common.h"
#include "zix/sorted_array.h"
diff --git a/test/tree_test.c b/test/tree_test.c
index b756202..dc91ff8 100644
--- a/test/tree_test.c
+++ b/test/tree_test.c
@@ -21,6 +21,10 @@
#include <sys/time.h>
+#ifndef _MSC_VER
+# include <inttypes.h>
+#endif
+
#include "zix/zix.h"
unsigned seed = 1;