Переглянути джерело

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
Tatsuhiro Tsujikawa 17 роки тому
батько
коміт
aa669e8646
2 змінених файлів з 13 додано та 2 видалено
  1. 7 0
      ChangeLog
  2. 6 2
      src/common.h

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+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
+
 2008-03-07  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Removed subPiece related functions.

+ 6 - 2
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