diff options
author | 2024-11-28 15:39:51 +0100 | |
---|---|---|
committer | 2024-11-28 15:39:51 +0100 | |
commit | b611aa62b8373f6d47bf3528782550a2667cc0f0 (patch) | |
tree | e877dd21834b35a880a9306b6c3ba4223ea573a3 /tools | |
parent | 8f24c4876a32b4f19e459bedd1fdbbc54cb0daa9 (diff) | |
download | libplist-b611aa62b8373f6d47bf3528782550a2667cc0f0.tar.gz libplist-b611aa62b8373f6d47bf3528782550a2667cc0f0.tar.bz2 |
Fix compilation on MSVC
Diffstat (limited to 'tools')
-rw-r--r-- | tools/plistutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |