fix possible undef ref when gettext is disabled or not installed
SVN revision: 59997
This commit is contained in:
parent
b62a44279f
commit
0248594352
|
@ -1,9 +1,15 @@
|
|||
#include <libintl.h>
|
||||
#define D_(str) dgettext(PACKAGE, str)
|
||||
|
||||
#ifndef E_MOD_MAIN_H
|
||||
#define E_MOD_MAIN_H
|
||||
|
||||
#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
|
||||
|
||||
typedef struct _Config Config;
|
||||
typedef struct _Config_Item Config_Item;
|
||||
|
||||
|
|
Loading…
Reference in New Issue