]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gettext.h
fetch: align per-ref summary report in UTF-8 locales
[thirdparty/git.git] / gettext.h
index 57ba8bb02e39d59752a5b2fbf016bc6fe49d27c1..e44d8bcda90239d513b6819bcd90b0d42cdd5606 100644 (file)
--- a/gettext.h
+++ b/gettext.h
 
 #ifndef NO_GETTEXT
 extern void git_setup_gettext(void);
+extern int gettext_width(const char *s);
 #else
 static inline void git_setup_gettext(void)
 {
 }
+static inline int gettext_width(const char *s)
+{
+       return strlen(s);
+}
 #endif
 
 #ifdef GETTEXT_POISON