On Thu, 2009-08-27 at 15:24 +0100, Alan Hourihane wrote:
> As the subject line says, and I end up with an unresolved symbol.
>
> Not sure what the right definition check to wrap that up in though.
Not sure this is right, but it works....
Alan.
diff --git a/lib/exclude.c b/lib/exclude.c
index 32f2a0a..eb44698 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -162,9 +162,11 @@ string_hasher_ci (void const *data, size_t
n_buckets)
mbchar_t m = mbui_cur (iter);
wchar_t wc;
+#ifdef COMPILE_WIDE
if (m.wc_valid)
wc = towlower (m.wc);
else
+#endif
wc = *m.ptr;
value = (value * 31 + wc) % n_buckets;