[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which header a symbol is declared in (AC_CHECK_DECLS) ?
From: |
Russ Allbery |
Subject: |
Re: Which header a symbol is declared in (AC_CHECK_DECLS) ? |
Date: |
Mon, 27 Apr 2009 15:08:10 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Ben Pfaff <address@hidden> writes:
> Russ Allbery <address@hidden> writes:
>> Practically speaking, I suspect that you'll improve portability to
>> systems that people actually care about by not worrying about
>> strings.h at all and not even trying to include it. I think we've
>> now reached the point where it's more likely that an OS will provide
>> a broken strings.h out of a misguided sense of backwards
>> compatibility than that someone will really want to build new
>> software on SunOS.
> I think that <strings.h> is still the only header in which POSIX
> declares ffs(), strcasecmp(), and strncasecmp(). That's a reasonable
> reason to #include <strings.h>, although Konstantin may not need those
> functions anyhow.
Huh. I've never seen a system that didn't declare strcasecmp() and
strncasecmp() in string.h. But indeed, that's what POSIX documents.
Thanks! I didn't realize that.
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>