From f455a27edde6e2a11d6f7208303b2b1b6a45f140 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 26 Oct 2005 23:08:56 +0000 Subject: [PATCH] * Use platform headers to source various libc prototypes instead of unsafe static ones (from vapier) --- code/tools/lcc/cpp/cpp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/tools/lcc/cpp/cpp.h b/code/tools/lcc/cpp/cpp.h index d72f24af..203ab745 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 +#else +#include +#endif +#include