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
commit9c5e44850d45d34e9f985ad630d42b285b32628a (patch)
tree2917d9af76cf9b6dcb48319a3d0c6703f89d12ec
parent9de9a022135fb9c129e38c9c5cdcda5508514069 (diff)
fix possible undef ref when gettext is disabled or not installed
SVN revision: 59997
-rw-r--r--src/e_mod_main.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/e_mod_main.h b/src/e_mod_main.h
index df81ac1..ed1a40d 100644
--- a/src/e_mod_main.h
+++ b/src/e_mod_main.h
@@ -1,8 +1,15 @@
1#define D_(str) dgettext(PACKAGE, str)
2
3#ifndef E_MOD_MAIN_H 1#ifndef E_MOD_MAIN_H
4#define E_MOD_MAIN_H 2#define E_MOD_MAIN_H
5 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
6#define RESOLUTION_MINUTE 0 13#define RESOLUTION_MINUTE 0
7#define RESOLUTION_SECOND 1 14#define RESOLUTION_SECOND 1
8 15