+2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * include/grub/i18n.h: Always enable grub_gettext.
+
2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
* kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
#include <config.h>
#include <grub/symbol.h>
-extern const char *(*EXPORT_VAR(grub_gettext)) (const char *s);
-
/* NLS can be disabled through the configure --disable-nls option. */
-#if (defined(ENABLE_NLS) && ENABLE_NLS)
+#if (defined(ENABLE_NLS) && ENABLE_NLS) || !defined (GRUB_UTIL)
+
+extern const char *(*EXPORT_VAR(grub_gettext)) (const char *s);
# ifdef GRUB_UTIL
for invalid uses of the value returned from these functions.
On pre-ANSI systems without 'const', the config.h file is supposed to
contain "#define const". */
-# ifdef GRUB_UTIL
static inline const char * __attribute__ ((always_inline))
gettext (const char *str)
{
return str;
}
-# else
-static inline const char * __attribute__ ((always_inline))
-grub_gettext (const char *str)
-{
- return str;
-}
-# endif /* GRUB_UTIL */
#endif /* (defined(ENABLE_NLS) && ENABLE_NLS) */