mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
d55379ba17
* [libplist] Add tools feature * Update version database * Remove tools from default-features * Update version database * Optimize STDIN_FILENO macro in patch * Update version database
19 lines
382 B
Diff
19 lines
382 B
Diff
diff --git a/tools/plistutil.c b/tools/plistutil.c
|
|
index 8121a7d..98b440e 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
|