X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=gettext.h;h=7671d09d04bb87541b11209b5cdbddbb9e4e59b8;hb=3d7535e42496a5b24d8cb17da1a332759928bd35;hp=376297bf730d421fa13237350d2beeb525be5ec4;hpb=04f426246651cb2c75253939cc065c1069744513;p=git.git diff --git a/gettext.h b/gettext.h index 376297bf7..7671d09d0 100644 --- a/gettext.h +++ b/gettext.h @@ -30,10 +30,15 @@ #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