diff --git a/tools/plistutil.c b/tools/plistutil.c index bbce7c70..ddf54e2f 100644 --- a/tools/plistutil.c +++ b/tools/plistutil.c @@ -32,7 +32,9 @@ #include #include #include +#ifndef _MSC_VER #include +#endif #define BUF_SIZE 2048 // Seems to be a decent start to cover most stdin files @@ -160,6 +162,7 @@ int main(int argc, char *argv[]) if (!options->in_file || !strcmp(options->in_file, "-")) { +#ifndef _MSC_VER read_size = 0; plist_entire = malloc(sizeof(char) * BUF_SIZE); if(plist_entire == NULL) @@ -203,6 +206,10 @@ int main(int argc, char *argv[]) free(options); return 1; } +#else + printf("ERROR: reading from stdin is not supported on Windows"); + return -1; +#endif } else {