]> sjero.net Git - wget/blobdiff - src/wget.h
Deal with progress bars in environs lacking mbtowc or wcwidth.
[wget] / src / wget.h
index 566c8ae44ec7bc767efcc0c5b07adbfb6f2262b8..08d8d8374ebd803b1cee0cf3681b6cb47ff74786 100644 (file)
@@ -67,6 +67,19 @@ as that of the covered work.  */
    variables.  -- explanation partly taken from GNU make.  */
 #define N_(string) string
 
+#if ! ENABLE_NLS
+# undef HAVE_WCHAR_H
+# undef HAVE_WCWIDTH
+# undef HAVE_MBTOWC
+#endif /* not ENABLE_NLS */
+
+#if HAVE_WCWIDTH && HAVE_MBTOWC
+# define USE_NLS_PROGRESS_BAR 1
+#else
+/* Just to be a little paranoid about it. */
+# undef  USE_NLS_PROGRESS_BAR
+#endif
+
 /* I18N NOTE: You will notice that none of the DEBUGP messages are
    marked as translatable.  This is intentional, for a few reasons: