summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-08 07:53:16 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-08 07:53:16 +0000
commitaa669e8646d5cb89d1e4aaba45b66b64932153ed (patch)
tree5fab9adb42e5fae0a24b875d6b184239f244931b /src/common.h
parente57a070a3fe1d5125fa61667982b9da062eb59de (diff)
2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compilation error with --disable-nls It seems that defining gettext(Msgid) to ((const char *) (Msgid)) in gettext.h causes the problem. * src/common.h
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 56a7346c..cce54d9e 100644
--- a/src/common.h
+++ b/src/common.h
@@ -52,8 +52,12 @@
#endif
#endif // __MINGW32__
-#include "gettext.h"
-#define _(String) gettext(String)
+#ifdef ENABLE_NLS
+# include "gettext.h"
+# define _(String) gettext(String)
+#else // ENABLE_NLS
+# define _(String) String
+#endif
// use C99 limit macros
#define __STDC_LIMIT_MACROS