summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/CRTfmode.c
diff options
context:
space:
mode:
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;