console/libgnt/gntutils.c

changeset 14480
0b76007b79f5
parent 14479
ab5407a042eb
child 14481
708344e48b1f
--- 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;

mercurial