libgimp/gimpintl.h use G_STMT_START and G_STMT_END for multiline #defines
* libgimp/gimpintl.h * libgimp/stdplugins-intl.h: use G_STMT_START and G_STMT_END for multiline #defines i18n stuff from David Monniaux -Yosh
This commit is contained in:
@ -6,19 +6,22 @@
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#ifdef HAVE_LC_MESSAGES
|
||||
#define INIT_I18N() \
|
||||
setlocale(LC_MESSAGES, ""); \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins")
|
||||
#define INIT_I18N() G_STMT_START{ \
|
||||
setlocale(LC_MESSAGES, ""); \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins"); \
|
||||
}G_STMT_END
|
||||
#else
|
||||
#define INIT_I18N() \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins")
|
||||
#define INIT_I18N() G_STMT_START{ \
|
||||
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
|
||||
textdomain("gimp-std-plugins"); \
|
||||
}G_STMT_END
|
||||
#endif
|
||||
|
||||
#define INIT_I18N_UI() \
|
||||
gtk_set_locale(); \
|
||||
setlocale (LC_NUMERIC, "C"); \
|
||||
INIT_I18N();
|
||||
#define INIT_I18N_UI() G_STMT_START{ \
|
||||
gtk_set_locale(); \
|
||||
setlocale (LC_NUMERIC, "C"); \
|
||||
INIT_I18N(); \
|
||||
}G_STMT_END
|
||||
|
||||
#endif /* __STDPLUGINS_INTL_H__ */
|
||||
|
Reference in New Issue
Block a user