X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fprogress.c;h=d77f99b6951d12b7c63360704c86a21e2ac2f413;hp=a06f73d39c0b66ab8c3d218e6299307597683e9d;hb=35b72cc941175a2c13989c7d1e5a77a948d5c432;hpb=2a8fe286da5970a8f635c26e7241fb7541dbf49a diff --git a/src/progress.c b/src/progress.c index a06f73d3..d77f99b6 100644 --- a/src/progress.c +++ b/src/progress.c @@ -38,6 +38,9 @@ as that of the covered work. */ # include #endif #include +#ifdef HAVE_WCHAR_H +# include +#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) {