diff options
| author | nijtmans <nijtmans> | 2009-12-21 23:25:39 (GMT) |
|---|---|---|
| committer | nijtmans <nijtmans> | 2009-12-21 23:25:39 (GMT) |
| commit | 367aaa350315a341356ec49f3e3f64bd54cbecef (patch) | |
| tree | 86d9a8cc06d969564b99b6d5ed25975042f9300a /win/tclWinFile.c | |
| parent | ccd4172f94302647ab57606d12ec1bb6b2d6e9f3 (diff) | |
| download | tcl-367aaa350315a341356ec49f3e3f64bd54cbecef.zip tcl-367aaa350315a341356ec49f3e3f64bd54cbecef.tar.gz tcl-367aaa350315a341356ec49f3e3f64bd54cbecef.tar.bz2 | |
Various CYGWIN-related fixes. In the win32 configure script, CYGWIN is still not enabled yet, but at least it is a step in the right direction.
Diffstat (limited to 'win/tclWinFile.c')
| -rw-r--r-- | win/tclWinFile.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 23fea2b..c9d6e28 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.100 2009/12/16 23:26:02 nijtmans Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.101 2009/12/21 23:25:40 nijtmans Exp $ */ /* #define _WIN32_WINNT 0x0500 */ @@ -1264,8 +1264,8 @@ WinIsReserved( } } - } else if (!stricmp(path, "prn") || !stricmp(path, "nul") - || !stricmp(path, "aux")) { + } else if (!strcasecmp(path, "prn") || !strcasecmp(path, "nul") + || !strcasecmp(path, "aux")) { /* * Have match for 'prn', 'nul' or 'aux'. */ @@ -1787,9 +1787,9 @@ NativeIsExec( * Use wide-char case-insensitive comparison */ - if ((_wcsicmp(path+len-3, L"exe") == 0) - || (_wcsicmp(path+len-3, L"com") == 0) - || (_wcsicmp(path+len-3, L"bat") == 0)) { + if ((wcscasecmp(path+len-3, L"exe") == 0) + || (wcscasecmp(path+len-3, L"com") == 0) + || (wcscasecmp(path+len-3, L"bat") == 0)) { return 1; } } else { @@ -1808,9 +1808,9 @@ NativeIsExec( * executable, whereas access did not. */ - if ((stricmp(p, "exe") == 0) - || (stricmp(p, "com") == 0) - || (stricmp(p, "bat") == 0)) { + if ((strcasecmp(p, "exe") == 0) + || (strcasecmp(p, "com") == 0) + || (strcasecmp(p, "bat") == 0)) { /* * File that ends with .exe, .com, or .bat is executable. */ |
