[REDEXPL]
[reactos.git] / rosapps / applications / net / ncftp / ncftp / getline.c
index 23996d4..5099b07 100644 (file)
@@ -20,7 +20,6 @@
 
 static const char copyright[] = "getline:  Copyright (C) 1991, 1992, 1993, Chris Thewalt";
 
-#if defined(WIN32) || defined(_WINDOWS)
 #      include <windows.h>
 #      include <sys/types.h>
 #      include <sys/stat.h>
@@ -59,54 +58,6 @@ static const char copyright[] = "getline:  Copyright (C) 1991, 1992, 1993, Chris
 #      define UNC_PATH_PREFIX "\\\\"
 #      define IsUNCPrefixed(s) (IsLocalPathDelim(s[0]) && IsLocalPathDelim(s[1]))
 #      define __windows__ 1
-#else
-#      ifndef __unix__
-#              define __unix__ 1
-#      endif
-#      if defined(AIX) || defined(_AIX)
-#              define _ALL_SOURCE 1
-#      endif
-#      if defined(HAVE_CONFIG_H)
-#              include <config.h>
-#      else
-#              /* guess */
-#              define HAVE_TERMIOS_H 1
-#              define HAVE_UNISTD_H 1
-#      endif
-#      ifdef HAVE_UNISTD_H
-#              include <unistd.h>
-#      endif
-#      include <sys/types.h>
-#      include <sys/time.h>
-#      include <sys/stat.h>
-#      ifdef CAN_USE_SYS_SELECT_H
-#              include <sys/select.h>
-#      endif
-#      include <fcntl.h>
-#      include <errno.h>
-#      include <dirent.h>
-#      include <pwd.h>
-#      ifdef HAVE_TERMIOS_H            /* use HAVE_TERMIOS_H interface */
-#              include <termios.h>
-               struct termios  new_termios, old_termios;
-#      else /* not HAVE_TERMIOS_H */
-#              include <sys/ioctl.h>
-#              ifdef TIOCSETN          /* use BSD interface */
-#                      include <sgtty.h>
-                       struct sgttyb   new_tty, old_tty;
-                       struct tchars   tch;
-                       struct ltchars  ltch;
-#              else                    /* use SYSV interface */
-#                      include <termio.h>
-                       struct termio   new_termio, old_termio;
-#              endif /* TIOCSETN */
-#      endif /* HAVE_TERMIOS_H */
-#      define LOCAL_PATH_DELIM '/'
-#      define LOCAL_PATH_DELIM_STR "/"
-#      define _StrFindLocalPathDelim(a) strchr(a, LOCAL_PATH_DELIM)
-#      define _StrRFindLocalPathDelim(a) strrchr(a, LOCAL_PATH_DELIM)
-#      define IsLocalPathDelim(c) (c == LOCAL_PATH_DELIM)
-#endif
 
 /********************* C library headers ********************************/