From 7f891971c7e770d24414752926bfef25bc3a1919 Mon Sep 17 00:00:00 2001 From: Thad Ward Date: Fri, 12 May 2000 04:31:35 +0000 Subject: [PATCH] moved the location of the #include for limits.h, so MSVC would be able to build the tree. --- common/quakefs.c | 7 ++++++- common/quakeio.c | 6 +++++- win32/config.h | 1 - 3 files changed, 11 insertions(+), 3 deletions(-) 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" -