diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-08 07:53:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-08 07:53:16 +0000 |
| commit | aa669e8646d5cb89d1e4aaba45b66b64932153ed (patch) | |
| tree | 5fab9adb42e5fae0a24b875d6b184239f244931b /src/common.h | |
| parent | e57a070a3fe1d5125fa61667982b9da062eb59de (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.h | 8 |
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 |
