Do not include <libintl.h> without ENABLE_NLS

master
Yevgen Muntyan 2007-10-08 09:09:39 -05:00
parent 6c18bdb717
commit a247cfecf1
1 changed files with 4 additions and 5 deletions

View File

@ -15,13 +15,11 @@
#include <config.h>
#include <glib/gstrfuncs.h>
#include <libintl.h>
G_BEGIN_DECLS
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) moo_gettext (String)
#define Q_(String) g_strip_context ((String), moo_gettext (String))
#define N_(String) (String)
@ -54,11 +52,12 @@ G_BEGIN_DECLS
#endif /* !ENABLE_NLS */
G_BEGIN_DECLS
const char *moo_gettext (const char *string);
const char *_moo_gsv_gettext (const char *string);
char *_moo_gsv_dgettext (const char *domain, const char *string);
G_END_DECLS
#endif /* MOO_I18N_H */