diff --git a/tools/cio.c b/tools/cio.c index 9d3b5a8..45d65e0 100644 --- a/tools/cio.c +++ b/tools/cio.c @@ -23,12 +23,12 @@ #include #include #include -#include -#include -#include #include #include #include +#ifndef _MSC_VER +#include +#endif #ifdef __MACH__ # include # include @@ -192,6 +192,7 @@ static int log_cb(struct cio_ctx *ctx, int level, const char *file, int line, return 0; } +#ifndef _MSC_VER static int cio_default_root_path(char *path, int size) { int len; @@ -213,6 +214,12 @@ static int cio_default_root_path(char *path, int size) return 0; } +#else +static int cio_default_root_path(char *path, int size) +{ + return -1; +} +#endif static void cio_timespec_get(struct timespec *t) {