On 10/3/2014 2:31 AM, Eli Zaretskii wrote:
What about file names with drive letters?  Experience (in the GNU Make
department) indicates that some Cygwin users want that, perhaps
because they use Cygwin tools outside of the Cygwin environment.

OK, maybe I shouldn't rock the boat. I'll withdraw the suggested patch to system.h and instead just propose the following, to silence the compiler warnings:

Index: system.h
===================================================================
--- system.h    (revision 5852)
+++ system.h    (working copy)
@@ -148,7 +148,9 @@
 #  define SET_SCREEN_SIZE_HELPER terminal_prep_terminal()
 #  define DEFAULT_INFO_PRINT_COMMAND ">PRN"
 # else   /* O_BINARY && !__MSDOS__ */
-#  define setmode(f,m)  _setmode(f,m)
+#  ifndef setmode
+#   define setmode(f,m)  _setmode(f,m)
+#  endif
 #  define HAVE_LONG_FILENAMES(dir)   (1)
 #  define NULL_DEVICE  "NUL"
 # endif  /* O_BINARY && !__MSDOS__ */

Ken

Reply via email to