diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-26 23:08:56 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-26 23:08:56 +0000 |
commit | 5d019aaa30d49f86362cb87345fb8c7c7a7cf85e (patch) | |
tree | 5e289e938d9464be77545e893f8670e645937845 /code/tools | |
parent | 1e76e0b6431613a264b67c7c71bf1bbacfa893f0 (diff) | |
download | ioquake3-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/tools')
-rw-r--r-- | code/tools/lcc/cpp/cpp.h | 12 |
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> |