fix possible undef ref when gettext is disabled or not installed

SVN revision: 59997
This commit is contained in:
Vincent Torri 2011-06-06 17:36:38 +00:00
parent 012ad51fee
commit c4b8ad343a
1 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,14 @@
#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
#define _(str) dgettext(PACKAGE, str)
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(string) dgettext(PACKAGE, string)
#else
# define bindtextdomain(domain,dir)
# define bind_textdomain_codeset(domain,codeset)
# define _(string) (string)
#endif
#define N_(str) (str)
EAPI extern E_Module_Api e_modapi;