diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-14 10:15:50 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-14 10:15:50 (GMT) |
commit | 8a0b7ecf76ccbad9d6f0e838a17473c0dc0e0148 (patch) | |
tree | 453ebcfb8a37504341e21b11dc9db16f1b0fdc1e /win/tclWinPort.h | |
parent | bea9f0512c400f9cc9b24ad307323cca1a12c995 (diff) | |
parent | c3bb908ec5427846f355b333087a3e4c19e71d4e (diff) | |
download | tcl-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.h | 8 |
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 /* |