On Mon, 2007-04-02 at 19:08 -0400, Evan Schoenberg wrote:
> It's already at the top of internal.h which is the first #include
> there...
Truth. And, sure enough, using a #ifdef based on a config.h directive
does work after including "internal.h" :o) In that case, I'm hoping you
can help me with "the real" problem. For some reason, in the environment
I'm using, the files gtkutil.c and gtkimhtml.c do not compile because of
implicit declarations of strncasecmp. For example:
gtkimhtml.c:2217: error: implicit declaration of function `strncasecmp'
gtkimhtml.c:2217: warning: nested extern declaration of `strncasecmp'
Now, I'm not sure how to properly include strings.h. Is it
#ifndef _WIN32
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif /* def HAVE_STRINGS_H */
#endif /* ndef _WIN32 */
If so, and if this does not interfere with other builds, it is
really /this/ that I would need at the top of both gtkutils.c and
gtkimhtml.c .
Currently I am making inclusion of <strings.h> conditional on a
directive introduced by a downstream patch (which resides in config.h,
which brought my original question :o) ). However, if there are build
environments where <strings.h> does not "reach" these two files though
it should, perhaps this is a candidate for an upstream fix.
Please let me know,
Gabriel
|