diff options
author | Max Kellermann <max@duempel.org> | 2008-10-02 19:02:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-02 19:02:07 +0200 |
commit | 2fa18f35d878e280bbd8299aa4048bb59e183165 (patch) | |
tree | c7e7bdda00f506d795faa3af5ce4662d87e766a1 /src/charset.h | |
parent | fe84050389a15b45ee8071ebdc85488d8d3d36b4 (diff) | |
download | mpd-2fa18f35d878e280bbd8299aa4048bb59e183165.tar.gz mpd-2fa18f35d878e280bbd8299aa4048bb59e183165.tar.xz mpd-2fa18f35d878e280bbd8299aa4048bb59e183165.zip |
fix compiler errors without locale.h
The code did not compile when HAVE_LOCALE_H was not set. Also don't
compile all that code in charset.c, when there is no locale.h.
Diffstat (limited to '')
-rw-r--r-- | src/charset.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/charset.h b/src/charset.h index 70173d19c..0cb69d135 100644 --- a/src/charset.h +++ b/src/charset.h @@ -20,11 +20,15 @@ #ifndef CHARSET_H #define CHARSET_H +#include "config.h" + #include <stdbool.h> #include <stddef.h> +#ifdef HAVE_LOCALE_H const char * charset_init(void); +#endif /** * Returns the number of terminal cells occupied by this string. |