summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-06-06 17:36:38 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-06-06 17:36:38 +0000
commit31d548d7d7b8992490a10d22c6f67542d70467a2 (patch)
treed893cbc18a32211cdd1d2f6c547cbfcaf1a3a525
parent56ad223f63a09f3e84d8734c694c2213cc53ac81 (diff)
fix possible undef ref when gettext is disabled or not installed
SVN revision: 59997
-rw-r--r--src/e_mod_main.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/e_mod_main.h b/src/e_mod_main.h
index aa9a5e1..fa7a29b 100644
--- a/src/e_mod_main.h
+++ b/src/e_mod_main.h
@@ -1,16 +1,21 @@
1#ifndef E_MOD_MAIN_H 1#ifndef E_MOD_MAIN_H
2#define E_MOD_MAIN_H 2#define E_MOD_MAIN_H
3 3
4#ifdef ENABLE_NLS
5# include <libintl.h>
6# define D_(string) dgettext(PACKAGE, string)
7#else
8# define bindtextdomain(domain,dir)
9# define bind_textdomain_codeset(domain,codeset)
10# define D_(string) (string)
11#endif
12
4/* Macros used for config file versioning */ 13/* Macros used for config file versioning */
5#define MOD_CONFIG_FILE_EPOCH 0x0001 14#define MOD_CONFIG_FILE_EPOCH 0x0001
6#define MOD_CONFIG_FILE_GENERATION 0x008d 15#define MOD_CONFIG_FILE_GENERATION 0x008d
7#define MOD_CONFIG_FILE_VERSION \ 16#define MOD_CONFIG_FILE_VERSION \
8 ((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION) 17 ((MOD_CONFIG_FILE_EPOCH << 16) | MOD_CONFIG_FILE_GENERATION)
9 18
10/* Gettext: you need to use the D_ prefix for all your messages,
11 * like printf D_("Hello World\n"); so can be replaced by gettext */
12#define D_(str) dgettext(PACKAGE, str)
13
14typedef struct _Config Config; 19typedef struct _Config Config;
15typedef struct _Config_Item Config_Item; 20typedef struct _Config_Item Config_Item;
16 21