diff options
Diffstat (limited to 'tools/plistutil.c')
| -rw-r--r-- | tools/plistutil.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/plistutil.c b/tools/plistutil.c index 8121a7d..7e4eb67 100644 --- a/tools/plistutil.c +++ b/tools/plistutil.c @@ -32,10 +32,13 @@ #include <string.h> #include <sys/stat.h> #include <errno.h> +#ifndef _MSC_VER #include <unistd.h> +#endif #ifdef _MSC_VER #pragma warning(disable:4996) +#define STDIN_FILENO _fileno(stdin) #endif typedef struct _options @@ -170,7 +173,7 @@ static options_t *parse_arguments(int argc, char *argv[]) } else if (!strcmp(argv[i], "--version") || !strcmp(argv[i], "-v")) { - printf("plistutil %s\n", PACKAGE_VERSION); + printf("plistutil %s\n", libplist_version()); exit(EXIT_SUCCESS); } else @@ -193,8 +196,8 @@ int main(int argc, char *argv[]) plist_t root_node = NULL; char *plist_out = NULL; uint32_t size = 0; - int read_size = 0; - int read_capacity = 4096; + size_t read_size = 0; + size_t read_capacity = 4096; char *plist_entire = NULL; struct stat filestats; options_t *options = parse_arguments(argc, argv); |
