From 93f7d9108a0edf808e1e3bbcdbe6078310c22f9e Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 25 Feb 2015 22:04:16 -0500 Subject: gettext.c: move get_preferred_languages() from http.c Calling setlocale(LC_MESSAGES, ...) directly from http.c, without including , was causing compilation warnings. Move the helper function to gettext.c that already includes the header and where locale-related issues are handled. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- gettext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gettext.h') diff --git a/gettext.h b/gettext.h index 7671d09d04..e539482ae7 100644 --- a/gettext.h +++ b/gettext.h @@ -65,4 +65,6 @@ const char *Q_(const char *msgid, const char *plu, unsigned long n) /* Mark msgid for translation but do not translate it. */ #define N_(msgid) msgid +const char *get_preferred_languages(void); + #endif -- cgit v1.2.3