re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 29 Aug 2002 18:33:59 +0000 (18:33 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 29 Aug 2002 18:33:59 +0000 (18:33 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2091 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/cpp2/auto-host_vc_in.h

index deccf639e3b2427ccd199d424ae69c4466c7d2ec..da88c07f80a36af244c5d8bec98cb5c634179e2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
 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
index 4f88522cc51dc46014f607c8ae12e0e47326930b..a31badedfb8ad7785e840cbf8f26aa39f9ab74f1 100644 (file)
@@ -52,6 +52,17 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/
 #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 */