Overview
| Artifact ID: | ac04219c700ea72527e534fe0c97f212f5222a26 |
|---|---|
| Ticket: | 1902648fffffffffffffffffffffffffffffffff
Do not use strcasecmp |
| User & Date: | jenglish on 2008-02-27 09:13:26 |
Changes
- icomment:
Logged In: YES user_id=68433 Originator: YES More info: There is a fallback implementation of strcasecmp and strncasecmp in compat/strncasecmp.c; however the autoconf logic to enable it is not being triggered on this platform. AIX 4.1 has strcasecmp; it's defined in libc.a, and declared in <strings.h> along with a few other BSDisms like bcmp/bcopy/bzero, index, and rindex. Adding: #if HAVE_STRINGS_H # include <strings.h> #endif to unix/tclUnixPort.h fixes the compile-time errors, and there are no subsequent link-time errors. <strings.h> is in neither C89 nor POSIX, but it is specified in the Open Group Single Unix Specification.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"