From c01cac72c5ed47879e763cd4ee1066c501f3f076 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Wed, 27 May 2020 22:21:29 +0200 Subject: [PATCH] plistutil: Don't support reading from stdin on Windows for now --- tools/plistutil.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 {