Rev 5812 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5812 | Rev 6324 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* Binary mode I/O. |
1 | /* Binary mode I/O. |
2 | Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. |
2 | Copyright (C) 2001-2015 Free Software Foundation, Inc. |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | This program is free software: you can redistribute it and/or modify |
4 | This program is free software: you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 3 of the License, or |
6 | the Free Software Foundation; either version 3 of the License, or |
Line 38... | Line 38... | ||
38 | #if O_BINARY |
38 | #if O_BINARY |
39 | # if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ |
39 | # if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ |
40 | # include |
40 | # include |
41 | # else |
41 | # else |
42 | # define setmode _setmode |
42 | # define setmode _setmode |
- | 43 | # undef fileno |
|
- | 44 | # define fileno _fileno |
|
43 | # endif |
45 | # endif |
44 | # ifdef __DJGPP__ |
46 | # ifdef __DJGPP__ |
45 | # include |
47 | # include |
46 | # /* Avoid putting stdin/stdout in binary mode if it is connected to the |
48 | # /* Avoid putting stdin/stdout in binary mode if it is connected to the |
47 | # console, because that would make it impossible for the user to |
49 | # console, because that would make it impossible for the user to |