Cygwin: drop macro and code for CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
efa6611982
commit
8883f0ea39
|
@ -34,11 +34,6 @@ details. */
|
|||
#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
|
||||
CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data)
|
||||
|
||||
/* Old APIs had getc/putc macros that conflict with new CR/LF handling in the
|
||||
stdio buffers */
|
||||
#define CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING \
|
||||
(CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 20)
|
||||
|
||||
#define CYGWIN_VERSION_CHECK_FOR_S_IEXEC \
|
||||
(CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 36)
|
||||
|
||||
|
|
|
@ -2898,12 +2898,6 @@ ctermid (char *str)
|
|||
extern "C" int
|
||||
_cygwin_istext_for_stdio (int fd)
|
||||
{
|
||||
if (CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING)
|
||||
{
|
||||
syscall_printf ("fd %d: old API", fd);
|
||||
return 0; /* we do it for old apps, due to getc/putc macros */
|
||||
}
|
||||
|
||||
cygheap_fdget cfd (fd, false, false);
|
||||
if (cfd < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue