[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] strncasecmp and AIX
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] strncasecmp and AIX |
Date: |
Fri, 26 Mar 2004 13:01:05 +0100 |
User-agent: |
KMail/1.5 |
Karl Berry wrote:
> I received a bug report from Nelson Beebe regarding strncasecmp on IBM
> AIX 4.2. It seems that it is only declared in <strings.h>, not
> <string.h>, even though it is available in libc.
And what's the problem with it? (I haven't seen the original bug report from
Nelson Beebe.) GNU gettext 0.14.1 uses this module, and compiles fine on
AIX 4.3.2, which also has strcasecmp() and strncasecmp() defined in libc and
declared in <strings.h>.
> under what condition should
> strcase.h be included? I would think:
>
> #if !HAVE_DECL_STRNCASECMP
> # include "strcase.h"
> #endif
Well, the documentation at
http://savannah.gnu.org/cgi-bin/viewcvs/gnulib/gnulib/MODULES.html?rev=HEAD&content-type=text/html#module%3Dstrcase
says that just
#include "strcase.h"
should work, and for me it does.
> Don't we also need AC_CHECK_DECL(strncasecmp)?
I don't see why. The AIX <strings.h> declaration doesn't conflict with
gnulib's "strcase.h" declaration, therefore this declaration is irrelevant.
Bruno