Some build fixes to support compilation with MSVC on Windows
This commit is contained in:
parent
344925fc53
commit
7b293e3292
|
@ -30,7 +30,11 @@
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#if defined(HAVE_MMAP) || defined(__CYGWIN__)
|
#if defined(HAVE_MMAP) || defined(__CYGWIN__)
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
|
|
@ -44,6 +44,14 @@
|
||||||
# define WIN32_EXTRA_LEAN
|
# define WIN32_EXTRA_LEAN
|
||||||
# define STRICT
|
# define STRICT
|
||||||
# include <windows.h>
|
# 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
|
||||||
|
|
||||||
#endif /* _FCWINDOWS_H_ */
|
#endif /* _FCWINDOWS_H_ */
|
||||||
|
|
Loading…
Reference in New Issue