changeset 14366:71666c137a07

[gaim-migrate @ 17072] Apparently wcwidth isn't there everywhere. Thanks to Bleeter for this. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 28 Aug 2006 23:31:12 +0000
parents 573b36b628f6
children ee29af32f163
files console/libgnt/gntutils.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <string.h>
 #include <wchar.h>
 
+#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;