From: alex AT zool DOT unizh DOT ch (Alex Schroeder) Newsgroups: comp.os.msdos.djgpp Subject: strncasecmp!? Date: 21 Sep 1996 08:40:08 GMT Organization: University of Zurich, Switzerland Lines: 20 Message-ID: <5209l8$47i@rzunews.unizh.ch> NNTP-Posting-Host: rzurs10.unizh.ch To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp DJGPP provides us with strnicmp(), but when I tried to compile the source code on our AIX, I found out that it's gcc used strncasecmp(). What is the acceptable workaround for that? I use a define now: #ifdef UNIX #define strnicmp strncasecmp #endif But this still gives me a warning for the first appearance of strncasecmp() and it is pretty cumbersome. The string.h header file contains some #ifdef tests to check wether to provide strnicmp() or strncasecmp() (something about POSIX etc. which I don't know) - what would be the appropriate way for me to do it so that I don't have to edit my makefile to insert the "-DUNIX"? Alex. -- Grobbl. Noggl ARGH! ARGH! Gabbl. Nagga Frk'Tkl Kpfzt. alex AT zool DOT unizh DOT ch. Znamifktzgck. A. Schroeder, Buelachstr. 1c, CH-8057 Zuerich, Switzerland.