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
commit80c73958b02ad23e8fa4b89f7728f087f92751dd (patch)
tree323fc0ad0938541aaa03c2600f47e9e4c18408ee
parent5e16b73ac4cdc5408cefa0f4c46fcae6957b21b8 (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 3395782..b7c04f2 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