diff --git a/common/quakefs.c b/common/quakefs.c index 7060fd6..da660d2 100644 --- a/common/quakefs.c +++ b/common/quakefs.c @@ -31,7 +31,6 @@ #include #include -#include #ifdef HAVE_UNISTD_H #include #endif @@ -58,6 +57,12 @@ #include #endif +#ifdef _MSC_VER +#define _POSIX_ +#endif +#include + + /* All of Quake's data access is through a hierchal file system, but the contents of the file system can be transparently merged from several sources. diff --git a/common/quakeio.c b/common/quakeio.c index f5117c0..5e178d7 100644 --- a/common/quakeio.c +++ b/common/quakeio.c @@ -32,7 +32,6 @@ #ifdef HAVE_MALLOC_H #include #endif -#include #include #include #include @@ -47,6 +46,11 @@ #include #endif +#ifdef _MSC_VER +#define _POSIX_ +#endif +#include + void Qexpand_squiggle(const char *path, char *dest) { diff --git a/win32/config.h b/win32/config.h index a2b41c8..0ad955f 100644 --- a/win32/config.h +++ b/win32/config.h @@ -215,4 +215,3 @@ /* Define the name of the global config file */ #define GLOBAL_CFG_FILE ".\\qforge.cfg" -