changeset 14418:010d8433db81

[gaim-migrate @ 17126] how about now? committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 02 Sep 2006 07:38:08 +0000
parents 64e28f46c695
children b50aa149e09d
files console/libgnt/gntutils.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/console/libgnt/gntutils.c	Sat Sep 02 06:24:50 2006 +0000
+++ b/console/libgnt/gntutils.c	Sat Sep 02 07:38:08 2006 +0000
@@ -2,14 +2,17 @@
 
 #include <stdlib.h>
 #include <string.h>
-#include <wchar.h>
 
 #include "config.h"
 
 #ifndef HAVE_WCWIDTH
 #define wcwidth(X) 1
+#else
+#define __USE_XOPEN
 #endif
 
+#include <wchar.h>
+
 void gnt_util_get_text_bound(const char *text, int *width, int *height)
 {
 	const char *s = text, *last;