diff options
| author | 2024-11-28 15:39:51 +0100 | |
|---|---|---|
| committer | 2024-11-28 15:39:51 +0100 | |
| commit | b611aa62b8373f6d47bf3528782550a2667cc0f0 (patch) | |
| tree | e877dd21834b35a880a9306b6c3ba4223ea573a3 /tools/plistutil.c | |
| parent | 8f24c4876a32b4f19e459bedd1fdbbc54cb0daa9 (diff) | |
| download | libplist-b611aa62b8373f6d47bf3528782550a2667cc0f0.tar.gz libplist-b611aa62b8373f6d47bf3528782550a2667cc0f0.tar.bz2 | |
Fix compilation on MSVC
Diffstat (limited to 'tools/plistutil.c')
| -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 @@ | |||
| 32 | #include <string.h> | 32 | #include <string.h> |
| 33 | #include <sys/stat.h> | 33 | #include <sys/stat.h> |
| 34 | #include <errno.h> | 34 | #include <errno.h> |
| 35 | #ifndef _MSC_VER | ||
| 35 | #include <unistd.h> | 36 | #include <unistd.h> |
| 37 | #endif | ||
| 36 | 38 | ||
| 37 | #ifdef _MSC_VER | 39 | #ifdef _MSC_VER |
| 38 | #pragma warning(disable:4996) | 40 | #pragma warning(disable:4996) |
| 41 | #define STDIN_FILENO _fileno(stdin) | ||
| 39 | #endif | 42 | #endif |
| 40 | 43 | ||
| 41 | typedef struct _options | 44 | typedef struct _options |
