fix possible undef ref when gettext is disabled or not installed
SVN revision: 59997
This commit is contained in:
parent
5b65f0a870
commit
a8cc7ab667
|
@ -1,5 +1,3 @@
|
|||
#define D_(str) dgettext(PACKAGE, str)
|
||||
|
||||
#ifdef E_MOD_NEWS_TYPEDEFS
|
||||
|
||||
typedef struct _News News;
|
||||
|
@ -9,6 +7,15 @@ typedef struct _News News;
|
|||
#ifndef E_MOD_MAIN_H_INCLUDED
|
||||
#define E_MOD_MAIN_H_INCLUDED
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
# include <libintl.h>
|
||||
# define D_(string) dgettext(PACKAGE, string)
|
||||
#else
|
||||
# define bindtextdomain(domain,dir)
|
||||
# define bind_textdomain_codeset(domain,codeset)
|
||||
# define D_(string) (string)
|
||||
#endif
|
||||
|
||||
struct _News
|
||||
{
|
||||
E_Module *module;
|
||||
|
|
Loading…
Reference in New Issue