| 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; |