summaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index a5833b8..eb456c1 100644
--- a/handler.c
+++ b/handler.c
@@ -1,6 +1,8 @@
#include <stdbool.h>
#include <locale.h>
+#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
+#endif
#include <tidy.h>
#include <tidybuffio.h>
#include "icclient.h"
@@ -99,7 +101,7 @@ static void recurse(TidyDoc doc, TidyNode tnod, struct icclient_catalog **catalo
strcpy(*category, text);
} else {
is_price = false;
-#ifndef __ANDROID__
+#ifdef HAVE_LANGINFO_H
char *symbol = nl_langinfo_l(CRNCYSTR, loc);
size_t symbol_len = strlen(symbol) - 1;
if (symbol[0] == '-')