From aaf6be8a36ff1464ac5102ee8613d557f18b7b2b Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 1 Nov 2008 20:40:00 +0200 Subject: [PATCH] Bug 1004: Fix implicit declarations of c_* functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add #include directives to fix these errors: [CC] src/intl/gettext/l10nflist.o cc1: warnings being treated as errors .../src/intl/gettext/l10nflist.c: In function ‘_nl_normalize_codeset’: .../src/intl/gettext/l10nflist.c:352: error: implicit declaration of function ‘c_tolower’ [CC] src/dom/css/scanner.o cc1: warnings being treated as errors In file included from .../src/dom/scanner.h:4, from .../src/dom/css/scanner.h:4, from .../src/dom/css/scanner.c:12: .../src/dom/string.h: In function ‘dom_string_casecmp’: .../src/dom/string.h:34: error: implicit declaration of function ‘c_strncasecmp’ --- src/dom/string.h | 1 + src/intl/gettext/l10nflist.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dom/string.h b/src/dom/string.h index f5e36b91..f6032538 100644 --- a/src/dom/string.h +++ b/src/dom/string.h @@ -1,6 +1,7 @@ #ifndef EL_DOM_STRING_H #define EL_DOM_STRING_H +#include "util/conv.h" #include "util/memory.h" /* For now DOM has it's own little string library. Mostly because there are diff --git a/src/intl/gettext/l10nflist.c b/src/intl/gettext/l10nflist.c index 830aa33b..4d12aa95 100644 --- a/src/intl/gettext/l10nflist.c +++ b/src/intl/gettext/l10nflist.c @@ -35,6 +35,7 @@ #include "elinks.h" #include "intl/gettext/loadinfo.h" +#include "util/conv.h" #include "util/string.h" /* Awful hack to permit compilation under cygwin and its broken configure. -- 2.11.4.GIT