Added O_BINARY and O_TEXT (for Windows).

This commit is contained in:
Guido van Rossum 1997-08-08 21:48:51 +00:00
parent 9c43c590bc
commit 98d9d09090
1 changed files with 6 additions and 0 deletions

View File

@ -2211,6 +2211,12 @@ all_ins(d)
#endif #endif
#ifdef O_TRUNC #ifdef O_TRUNC
if (ins(d, "O_TRUNC", (long)O_TRUNC)) return -1; if (ins(d, "O_TRUNC", (long)O_TRUNC)) return -1;
#endif
#ifdef O_BINARY
if (ins(d, "O_BINARY", (long)O_BINARY)) return -1;
#endif
#ifdef O_TEXT
if (ins(d, "O_TEXT", (long)O_TEXT)) return -1;
#endif #endif
return 0; return 0;
} }