aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-02 19:02:07 +0200
committerMax Kellermann <max@duempel.org>2008-10-02 19:02:07 +0200
commit2fa18f35d878e280bbd8299aa4048bb59e183165 (patch)
treec7e7bdda00f506d795faa3af5ce4662d87e766a1 /src/charset.h
parentfe84050389a15b45ee8071ebdc85488d8d3d36b4 (diff)
downloadmpd-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.h4
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.