2000-02-17 20:38:33 +01:00
|
|
|
/*
|
|
|
|
* CRTfmode.c
|
2004-04-21 00:49:32 +02:00
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
|
|
* This file is a part of the mingw-runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER within the package.
|
2000-02-17 20:38:33 +01:00
|
|
|
*
|
2007-06-13 10:26:13 +02:00
|
|
|
* This libmingw.a object sets _CRT_fmode to a state that will cause
|
2004-04-21 00:49:32 +02:00
|
|
|
* _mingw32_init_fmode to leave all file modes in their default state
|
|
|
|
* (basically text mode).
|
2007-06-13 10:26:13 +02:00
|
|
|
*
|
|
|
|
* To override the default, add, eg:
|
2000-02-17 20:38:33 +01:00
|
|
|
*
|
2007-06-17 04:12:47 +02:00
|
|
|
* #include <fcntl.h>
|
2007-06-13 10:26:13 +02:00
|
|
|
* int _CRT_fmode = _O_BINARY;
|
2000-02-17 20:38:33 +01:00
|
|
|
*
|
2007-06-13 10:26:13 +02:00
|
|
|
* to your app.
|
2000-02-17 20:38:33 +01:00
|
|
|
*/
|
|
|
|
|
2002-10-03 02:49:21 +02:00
|
|
|
int _CRT_fmode = 0;
|