2002-08-29 Borut Razem <borut.razem@siol.net>
+ * sdcc/support/cpp2/auto-host_vc_in.h:
+ re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
+ with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
+ Maybe there is a similar problem with BORLANDC? It should be checked!
+
* sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
corrected improper use of assert: the assignment to clr variable was done inside the assert.
In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
#define close _close
#define read _read
#define write _write
+
+#define O_APPEND _O_APPEND
+#define O_CREAT _O_CREAT
+#define O_EXCL _O_EXCL
+#define O_RDONLY _O_RDONLY
+#define O_RDWR _O_RDWR
+#define O_TRUNC _O_TRUNC
+#define O_WRONLY _O_WRONLY
+#define O_BINARY _O_BINARY
+#define O_TEXT _O_TEXT
+
/*This one borrowed from \borland\bcc55\include\sys\stat.h*/
#define S_IFBLK 0x3000 /* block special */