summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-14 10:15:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-14 10:15:50 (GMT)
commit8a0b7ecf76ccbad9d6f0e838a17473c0dc0e0148 (patch)
tree453ebcfb8a37504341e21b11dc9db16f1b0fdc1e /win/tclWinPort.h
parentbea9f0512c400f9cc9b24ad307323cca1a12c995 (diff)
parentc3bb908ec5427846f355b333087a3e4c19e71d4e (diff)
downloadtcl-8a0b7ecf76ccbad9d6f0e838a17473c0dc0e0148.zip
tcl-8a0b7ecf76ccbad9d6f0e838a17473c0dc0e0148.tar.gz
tcl-8a0b7ecf76ccbad9d6f0e838a17473c0dc0e0148.tar.bz2
Don't use deprecated stricmp/strnicmp any more, but underscored variant for non-GNU compilers.
Some formatting - improved comments.
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index ca35f38..026cf9e 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -93,11 +93,9 @@ typedef DWORD_PTR * PDWORD_PTR;
#include <signal.h>
#include <limits.h>
-#ifndef strncasecmp
-# define strncasecmp strnicmp
-#endif
-#ifndef strcasecmp
-# define strcasecmp stricmp
+#ifndef __GNUC__
+# define strncasecmp _strnicmp
+# define strcasecmp _stricmp
#endif
/*