[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Minor build fixes
From: |
Ken Brown |
Subject: |
Re: Minor build fixes |
Date: |
Thu, 02 Oct 2014 18:55:29 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 10/2/2014 6:24 PM, Ken Brown wrote:
I think it's all OK, but I have to think a little more about comparison of file
names. I'll get back to you on that.
I'm not sure about comparison of file names, so maybe it would be safer to use
case-insensitive comparison as before. This requires adding the following hunk
to the previous patch:
@@ -187,8 +184,13 @@
# define HAS_SLASH(s) (strchr ((s), '/'))
# define HAVE_DRIVE(n) (0)
# define IS_ABSOLUTE(n) ((n)[0] == '/')
-# define FILENAME_CMP strcmp
-# define FILENAME_CMPN strncmp
+# ifdef __CYGWIN__
+# define FILENAME_CMP strcasecmp
+# define FILENAME_CMPN strncasecmp
+# else
+# define FILENAME_CMP strcmp
+# define FILENAME_CMPN strncmp
+# endif
# define HAVE_LONG_FILENAMES(dir) (1)
# define PATH_SEP ":"
# define STRIP_DOT_EXE 0
Ken
Re: Minor build fixes, Gavin Smith, 2014/10/06