From b338158ee6c4035bccf02b9d79e75fca0090fc6c Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 13 Jun 2007 08:26:13 +0000 Subject: [PATCH] * Makefile.in (CRT0S): Revert last change. * CRTfmode.c. Correct comment. --- winsup/mingw/CRTfmode.c | 9 ++++++--- winsup/mingw/ChangeLog | 5 +++++ winsup/mingw/Makefile.in | 2 +- 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 /* _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,3 +1,8 @@ +2007-06-13 Danny Smith + + * Makefile.in (CRT0S): Revert last change. + * CRTfmode.c. Correct comment. + 2007-06-13 Danny Smith * Makefile.in (CRT0S): Add back CRTfmode.o. 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