summaryrefslogtreecommitdiffstats
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
parentd25e2751e4f0d1c35e882b0adbf126a7e04dc3d1 (diff)
downloadcygnal-b338158ee6c4035bccf02b9d79e75fca0090fc6c.tar.gz
cygnal-b338158ee6c4035bccf02b9d79e75fca0090fc6c.tar.bz2
cygnal-b338158ee6c4035bccf02b9d79e75fca0090fc6c.zip
* Makefile.in (CRT0S): Revert last change.
* CRTfmode.c. Correct comment.
-rw-r--r--winsup/mingw/CRTfmode.c9
-rw-r--r--winsup/mingw/ChangeLog5
-rw-r--r--winsup/mingw/Makefile.in2
3 files changed, 12 insertions, 4 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;
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 06e338859..6e0887537 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,5 +1,10 @@
2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
+ * Makefile.in (CRT0S): Revert last change.
+ * CRTfmode.c. Correct comment.
+
+2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
+
* Makefile.in (CRT0S): Add back CRTfmode.o.
2007-06-13 Danny Smith <dannysmith@users.sourceforge.net>
diff --git a/winsup/mingw/Makefile.in b/winsup/mingw/Makefile.in
index cc760450f..8958aee8f 100644
--- a/winsup/mingw/Makefile.in
+++ b/winsup/mingw/Makefile.in
@@ -171,7 +171,7 @@ FLAGS_TO_PASS:=\
TARFILEEXT="$(TARFILEEXT)"
CRT0S = crt1.o dllcrt1.o crt2.o dllcrt2.o CRT_noglob.o crtmt.o crtst.o \
- CRT_fp8.o CRT_fp10.o txtmode.o binmode.o CRTfmode.o
+ CRT_fp8.o CRT_fp10.o txtmode.o binmode.o
MINGW_OBJS = CRTglob.o CRTfmode.o CRTinit.o dllmain.o gccmain.o \
main.o crtst.o mthr_stub.o CRT_fp10.o txtmode.o \
pseudo-reloc.o pseudo-reloc-list.o cpu_features.o