r185 - trunk/code/tools/lcc/cpp

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Oct 26 19:08:56 EDT 2005


Author: tma
Date: 2005-10-26 19:08:56 -0400 (Wed, 26 Oct 2005)
New Revision: 185

Modified:
   trunk/code/tools/lcc/cpp/cpp.h
Log:
* Use platform headers to source various libc prototypes instead of unsafe
  static ones (from vapier)


Modified: trunk/code/tools/lcc/cpp/cpp.h
===================================================================
--- trunk/code/tools/lcc/cpp/cpp.h	2005-10-26 22:59:30 UTC (rev 184)
+++ trunk/code/tools/lcc/cpp/cpp.h	2005-10-26 23:08:56 UTC (rev 185)
@@ -155,9 +155,9 @@
 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>




More information about the quake3-commits mailing list