comparison console/libgnt/gntutils.c @ 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 fda9dc44807d
children 64e28f46c695
comparison
equal deleted inserted replaced
14365:573b36b628f6 14366:71666c137a07
1 #include "gntutils.h" 1 #include "gntutils.h"
2 2
3 #include <stdlib.h> 3 #include <stdlib.h>
4 #include <string.h> 4 #include <string.h>
5 #include <wchar.h> 5 #include <wchar.h>
6
7 #ifndef __USE_XOPEN
8 #define wcwidth(X) 1
9 #endif
6 10
7 void gnt_util_get_text_bound(const char *text, int *width, int *height) 11 void gnt_util_get_text_bound(const char *text, int *width, int *height)
8 { 12 {
9 const char *s = text, *last; 13 const char *s = text, *last;
10 int count = 1, max = 0; 14 int count = 1, max = 0;