summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 02:12:15 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 02:12:15 +0000
commit5d4b4d571b712b184677eb8dc906007de9fe53c4 (patch)
treeb534ef5d816e8d8fff513b064943e1f96b387de2 /src
parent3a1b6495c4557d113ac2587da92f1b76c9ee2a7e (diff)
fl_filename_match() was not doing a case-insensitive comparison on UNIX
(only OSX and Windows...) This makes cross-platform patterns complicated... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/filename_match.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/filename_match.cxx b/src/filename_match.cxx
index 10153e63c..41a42e518 100644
--- a/src/filename_match.cxx
+++ b/src/filename_match.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: filename_match.cxx,v 1.5.2.4.2.3 2002/03/25 21:08:42 easysw Exp $"
+// "$Id: filename_match.cxx,v 1.5.2.4.2.4 2002/10/11 02:12:15 easysw Exp $"
//
// Pattern matching routines for the Fast Light Tool Kit (FLTK).
//
@@ -92,17 +92,13 @@ int fl_filename_match(const char *s, const char *p) {
case '\\': // quote next character
if (*p) p++;
default:
-#if defined(WIN32) || defined(__CYGWIN__) || defined(__APPLE__)
if (tolower(*s) != tolower(*(p-1))) return 0;
s++;
-#else
- if (*s++ != *(p-1)) return 0;
-#endif
break;
}
}
}
//
-// End of "$Id: filename_match.cxx,v 1.5.2.4.2.3 2002/03/25 21:08:42 easysw Exp $".
+// End of "$Id: filename_match.cxx,v 1.5.2.4.2.4 2002/10/11 02:12:15 easysw Exp $".
//