diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-10-03 00:49:21 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-10-03 00:49:21 +0000 |
commit | 7c3de623b662e2dc389c005022fa59f4df626cce (patch) | |
tree | d0f5c19010d77348bf4ba73d74d7b254e4a6e43a /winsup/mingw/samples | |
parent | 14ab3f24e17b714e79e78108b1d0733e85f0e951 (diff) | |
download | cygnal-7c3de623b662e2dc389c005022fa59f4df626cce.tar.gz cygnal-7c3de623b662e2dc389c005022fa59f4df626cce.tar.bz2 cygnal-7c3de623b662e2dc389c005022fa59f4df626cce.zip |
* include/fcntl.h (_fmode): Remove declarations and
compatibility defines.
(_setmode, setmode): Remove prototypes.
* include/stdlib (_fmode): Add declarations and
compatibility defines. Change type to int.
* include/io.h (_setmode, setmode): Add prototypes.
* samples/fmode/all.c: Adjust includes.
* samples/fmode/test.c: Likewise.
* crt1.c (_CRT_fmode): Declare as int.
* CRTfmode.c (_CRT_fmode): Likewise.
* include/stdlib: Remove comment about MB_CUR_MAX.
Diffstat (limited to 'winsup/mingw/samples')
-rw-r--r-- | winsup/mingw/samples/fmode/all.c | 5 | ||||
-rw-r--r-- | winsup/mingw/samples/fmode/test.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/mingw/samples/fmode/all.c b/winsup/mingw/samples/fmode/all.c index a6f7d51f7..f052b9306 100644 --- a/winsup/mingw/samples/fmode/all.c +++ b/winsup/mingw/samples/fmode/all.c @@ -13,7 +13,10 @@ */ #include <stdio.h> -#include <fcntl.h> +#include <stdlib.h> /* _fmode */ +#include <fcntl.h> /* _O_BINARY */ +#include <io.h> /* _setmode */ + unsigned int _CRT_fmode = _O_BINARY; diff --git a/winsup/mingw/samples/fmode/test.c b/winsup/mingw/samples/fmode/test.c index b0488b2ea..0ec364534 100644 --- a/winsup/mingw/samples/fmode/test.c +++ b/winsup/mingw/samples/fmode/test.c @@ -9,7 +9,8 @@ */ #include <stdio.h> -#include <fcntl.h> /* Required to get _fmode and _O_BINARY */ +#include <stdlib.h> /* _fmode */ +#include <fcntl.h> /* _O_BINARY */ main () { |