Code

Added file langinfo.c, used on systems without nl_langinfo() support.
[ncmpc.git] / support.h
index 9e1a1b866da84b2bb9907ec19aa0cd4d57663bd5..fc0e20559dc98442cf5c8056a28f9aa2bf1ce856 100644 (file)
--- a/support.h
+++ b/support.h
@@ -3,6 +3,12 @@
 #include <libgen.h>
 #endif
 
+#ifndef HAVE_LANGINFO_CODESET
+#define CODESET ((nl_item) 1)
+typedef int nl_item;
+char *nl_langinfo(nl_item);
+#endif
+
 char *concat_path(char *p1, char *p2);
 
 #ifndef HAVE_BASENAME