X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=gettext.h;fp=gettext.h;h=71255e503eeb70e691e03ac1be0e2a249244a096;hp=7eee64a34fa0a5e922606e6351b29d08cb26fe6b;hb=6cdccfce1e0f218d4d26292b85ec18ed96c91be7;hpb=d582ea202b626dcc6c3b01e1e11a296d9badd730 diff --git a/gettext.h b/gettext.h index 7eee64a34f..71255e503e 100644 --- a/gettext.h +++ b/gettext.h @@ -28,12 +28,15 @@ #define FORMAT_PRESERVING(n) __attribute__((format_arg(n))) +extern int use_gettext_poison(void); + #ifndef NO_GETTEXT extern void git_setup_gettext(void); extern int gettext_width(const char *s); #else static inline void git_setup_gettext(void) { + use_gettext_poison(); /* getenv() reentrancy paranoia */ } static inline int gettext_width(const char *s) { @@ -41,12 +44,6 @@ static inline int gettext_width(const char *s) } #endif -#ifdef GETTEXT_POISON -extern int use_gettext_poison(void); -#else -#define use_gettext_poison() 0 -#endif - static inline FORMAT_PRESERVING(1) const char *_(const char *msgid) { if (!*msgid)