fix possible undef ref when gettext is disabled or not installed
SVN revision: 59997
This commit is contained in:
parent
ac6ee02f4f
commit
05178ca306
|
@ -1,14 +1,21 @@
|
||||||
#ifndef E_MOD_MAIN_H
|
#ifndef E_MOD_MAIN_H
|
||||||
#define 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
|
||||||
|
|
||||||
/* Macros used for config file versioning */
|
/* Macros used for config file versioning */
|
||||||
#define MOD_CONFIG_FILE_EPOCH 0x0001
|
#define MOD_CONFIG_FILE_EPOCH 0x0001
|
||||||
#define MOD_CONFIG_FILE_GENERATION 0x008f
|
#define MOD_CONFIG_FILE_GENERATION 0x008f
|
||||||
#define MOD_CONFIG_FILE_VERSION \
|
#define MOD_CONFIG_FILE_VERSION \
|
||||||
((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
|
||||||
|
|
||||||
#define D_(str) dgettext(PACKAGE, str)
|
|
||||||
|
|
||||||
typedef struct _Config Config;
|
typedef struct _Config Config;
|
||||||
struct _Config
|
struct _Config
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue