summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-04-13 13:37:28 (GMT)
committernijtmans <nijtmans>2010-04-13 13:37:28 (GMT)
commitc06c61b28e8878da81a9b56f34c5570f3f3f747a (patch)
tree76f71209be2c8e9b03c7e2c8ae1cfc7612b3ad78 /win/tclWinFile.c
parentf10d81b895d8ca9d30428aac9884685fb284986a (diff)
downloadtcl-c06c61b28e8878da81a9b56f34c5570f3f3f747a.zip
tcl-c06c61b28e8878da81a9b56f34c5570f3f3f747a.tar.gz
tcl-c06c61b28e8878da81a9b56f34c5570f3f3f747a.tar.bz2
Fix [Patch 2986105]: conditionally defining strcasecmp/strncasecmp
Fix gcc warning: comparison of unsigned expression >= 0 is always true
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 2785912..b18aa1c 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.105 2010/03/07 14:39:25 nijtmans Exp $
+ * RCS: @(#) $Id: tclWinFile.c,v 1.106 2010/04/13 13:37:29 nijtmans Exp $
*/
/* #define _WIN32_WINNT 0x0500 */
@@ -1787,9 +1787,9 @@ NativeIsExec(
* Use wide-char case-insensitive comparison
*/
- if ((wcscasecmp(path+len-3, L"exe") == 0)
- || (wcscasecmp(path+len-3, L"com") == 0)
- || (wcscasecmp(path+len-3, L"bat") == 0)) {
+ if ((_wcsicmp(path+len-3, L"exe") == 0)
+ || (_wcsicmp(path+len-3, L"com") == 0)
+ || (_wcsicmp(path+len-3, L"bat") == 0)) {
return 1;
}
} else {