[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which header a symbol is declared in (AC_CHECK_DECLS) ?
From: |
Ben Pfaff |
Subject: |
Re: Which header a symbol is declared in (AC_CHECK_DECLS) ? |
Date: |
Mon, 27 Apr 2009 13:13:36 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
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.
--
Ben Pfaff
http://benpfaff.org