gettext.h: include <locale> before defining the gettext macro (#4452)
authorkahrl <kahrl@gmx.net>
Sun, 21 Aug 2016 00:40:23 +0000 (02:40 +0200)
committerest31 <est31@users.noreply.github.com>
Sun, 21 Aug 2016 00:40:23 +0000 (02:40 +0200)
commitcafa400fa5077e7cb9c627d79482941cb82a81cf
tree0da784f4389ecb42104b157fb423e11795d701be
parentf092dac9793b80c29a669b0d676ee3e4f55f682e
gettext.h: include <locale> before defining the gettext macro (#4452)

Fixes #4446: a syntax error that happens if something else (such as
<iomanip> or <locale> in certain libstdc++ versions) includes
<libintl.h> later, which contains a function declaration for gettext
that gets mangled by the macro.

See the added comment in gettext.h and the discussion in #4446/#4452
for details.
src/gettext.h