summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/CRTfmode.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2007-06-13 08:26:13 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2007-06-13 08:26:13 +0000
commitb338158ee6c4035bccf02b9d79e75fca0090fc6c (patch)
treefc64825ed8137c633a4b32ff1386b2e9fc1ffc7e /winsup/mingw/CRTfmode.c
parentd25e2751e4f0d1c35e882b0adbf126a7e04dc3d1 (diff)
downloadcygnal-b338158ee6c4035bccf02b9d79e75fca0090fc6c.tar.gz
cygnal-b338158ee6c4035bccf02b9d79e75fca0090fc6c.tar.bz2
cygnal-b338158ee6c4035bccf02b9d79e75fca0090fc6c.zip
* Makefile.in (CRT0S): Revert last change.
* CRTfmode.c. Correct comment.
Diffstat (limited to 'winsup/mingw/CRTfmode.c')
-rw-r--r--winsup/mingw/CRTfmode.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/winsup/mingw/CRTfmode.c b/winsup/mingw/CRTfmode.c
index bf750d94e..fcbdd333b 100644
--- a/winsup/mingw/CRTfmode.c
+++ b/winsup/mingw/CRTfmode.c
@@ -4,13 +4,16 @@
* This file is a part of the mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within the package.
*
- * Include this object to set _CRT_fmode to a state that will cause
+ * This libmingw.a object sets _CRT_fmode to a state that will cause
* _mingw32_init_fmode to leave all file modes in their default state
* (basically text mode).
+ *
+ * To override the default, add, eg:
*
- * To use this object include the object file in your link command:
- * gcc -o foo.exe foo.o CRTfmode.o
+ * #include <fcntl.h> /* _O_BINARY */
+ * int _CRT_fmode = _O_BINARY;
*
+ * to your app.
*/
int _CRT_fmode = 0;