aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-26 23:08:56 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-26 23:08:56 +0000
commit5d019aaa30d49f86362cb87345fb8c7c7a7cf85e (patch)
tree5e289e938d9464be77545e893f8670e645937845 /code
parent1e76e0b6431613a264b67c7c71bf1bbacfa893f0 (diff)
downloadioquake3-aero-5d019aaa30d49f86362cb87345fb8c7c7a7cf85e.tar.gz
ioquake3-aero-5d019aaa30d49f86362cb87345fb8c7c7a7cf85e.zip
* Use platform headers to source various libc prototypes instead of unsafe
static ones (from vapier) git-svn-id: svn://svn.icculus.org/quake3/trunk@185 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/tools/lcc/cpp/cpp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/code/tools/lcc/cpp/cpp.h b/code/tools/lcc/cpp/cpp.h
index d72f24a..203ab74 100644
--- a/code/tools/lcc/cpp/cpp.h
+++ b/code/tools/lcc/cpp/cpp.h
@@ -155,9 +155,9 @@ extern Nlist *kwdefined;
extern Includelist includelist[NINCLUDE];
extern char wd[];
-extern int creat(char *, int);
-extern int open(char *, int);
-extern int close(int);
-extern int dup2(int, int);
-extern int write(int, char *, size_t);
-extern int read(int, char *, size_t);
+#ifndef _WIN32
+#include <unistd.h>
+#else
+#include <io.h>
+#endif
+#include <fcntl.h>