]> sjero.net Git - wget/blobdiff - src/progress.c
Handle missing wchar.h, wcwidth.
[wget] / src / progress.c
index a06f73d39c0b66ab8c3d218e6299307597683e9d..d77f99b6951d12b7c63360704c86a21e2ac2f413 100644 (file)
@@ -38,6 +38,9 @@ as that of the covered work.  */
 # include <unistd.h>
 #endif
 #include <signal.h>
+#ifdef HAVE_WCHAR_H
+# include <wchar.h>
+#endif
 
 #include "progress.h"
 #include "utils.h"
@@ -764,6 +767,10 @@ update_speed_ring (struct bar_progress *bp, wgint howmuch, double dltime)
 #endif
 }
 
+#if ! HAVE_WCWIDTH
+#define wcwidth(wc) (1)
+#endif
+
 int
 count_cols (const char *mbs)
 {