delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/03/00:02:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3D9BC13A.4090602@etr-usa.com>
Date: Wed, 02 Oct 2002 22:02:02 -0600
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: Cygwin and NetHack - strncasecmp compile error
References: <20020930225438 DOT 77013 DOT qmail AT web40208 DOT mail DOT yahoo DOT com>
X-Note: This E-mail was scanned by Declude JunkMail (www.declude.com) for spam.

Brian Rowe wrote:
> int	 _EXFUN(strcasecmp,(const char *, const char *));
> 688: extern.h
> E int FDECL(strncmpi, (const char *,const char
> *,int));
> 
> I don't understand why these lines conflict.  

The only way I can think of for these two prototypes to conflict is if 
someone's playing preprocessor games.  This is likely, since there is no 
universal standard for a case-insensitive string comparision function. 
Those are just two of several I've seen.  So, there's probably some 
macro somewhere like this:

#define STRCASECMP(s1,s2) strcmpi((s1),(s2))

You could probably fix this by figuring out Nethack's portability system 
and making it choose the right version of STRCASECMP (or whatever the 
program calls the macro).  But what I wonder is, why not use the native 
Win32 console version of Nethack?  That will work without fuss.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019