Re: [gtk-list] strcasecmp in gtkcombo.c
- From: Paolo Molaro <lupus lettere unipd it>
- To: gtk-list <gtk-list redhat com>
- Subject: Re: [gtk-list] strcasecmp in gtkcombo.c
- Date: Sat, 31 Jan 1998 10:05:58 +0100
On Fri, Jan 30, 1998 at 12:38:39PM -0500, Jim Whitby wrote:
> I'm getting the following error compiling gtk+-0.99.3 on Unixware 2.1.2
> system.
> Using gcc 2.7.2
>
> gtkcombo.c:151: `strcasecmp' undeclared (first use this function)
It seems that Unixware doesn't have the strcasecmp function in
the <string.h> header (and maybe also in libc).
strcasecmp is a BSD feature that's also in Linux and Solaris:
should we provide a g_strcasecmp function in glib (or should people
get rid of unixware:-)?
In the mean time you can change that code to read:
/* if (combo->case_sensitive)*/
string_compare = strcmp;
/* else
string_compare = strcasecmp;*/
and you will get always case-sensitive compares...
lupus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]