# HG changeset patch # User Sadrul Habib Chowdhury # Date 1156807872 0 # Node ID 71666c137a0732dbf2707de5d5695116e333b5f4 # Parent 573b36b628f69fd36e388ba5e7ce5d87e5b050f9 [gaim-migrate @ 17072] Apparently wcwidth isn't there everywhere. Thanks to Bleeter for this. committer: Tailor Script diff -r 573b36b628f6 -r 71666c137a07 console/libgnt/gntutils.c --- a/console/libgnt/gntutils.c Mon Aug 28 20:43:12 2006 +0000 +++ b/console/libgnt/gntutils.c Mon Aug 28 23:31:12 2006 +0000 @@ -4,6 +4,10 @@ #include #include +#ifndef __USE_XOPEN +#define wcwidth(X) 1 +#endif + void gnt_util_get_text_bound(const char *text, int *width, int *height) { const char *s = text, *last;