summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-14 10:11:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-14 10:11:08 (GMT)
commitc3bb908ec5427846f355b333087a3e4c19e71d4e (patch)
treed80ae8da6e99f1c519751ecb0b6b9605100f79b2 /win/tclWinPort.h
parent232d48bde8d33fd790e47e94cf9f239db3099505 (diff)
downloadtcl-c3bb908ec5427846f355b333087a3e4c19e71d4e.zip
tcl-c3bb908ec5427846f355b333087a3e4c19e71d4e.tar.gz
tcl-c3bb908ec5427846f355b333087a3e4c19e71d4e.tar.bz2
Don't use deprecated stricmp/strnicmp any more, but underscored variant for non-GNU compilers.
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 b545a09..ec9e867 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -64,11 +64,9 @@ typedef DWORD_PTR * PDWORD_PTR;
#include <string.h>
#include <limits.h>
-#ifndef strncasecmp
-# define strncasecmp strnicmp
-#endif
-#ifndef strcasecmp
-# define strcasecmp stricmp
+#ifndef __GNUC__
+# define strncasecmp _strnicmp
+# define strcasecmp _stricmp
#endif
/*