Commit 7b293e32 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸 Committed by Tim-Philipp Müller
Browse files

Some build fixes to support compilation with MSVC on Windows

parent 344925fc
......@@ -30,7 +30,11 @@
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <assert.h>
#if defined(HAVE_MMAP) || defined(__CYGWIN__)
# include <unistd.h>
......
......@@ -44,6 +44,14 @@
# define WIN32_EXTRA_LEAN
# define STRICT
# include <windows.h>
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#endif /* _FCWINDOWS_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment