+#ifndef HAVE_STRRCHR
+#define strrchr rindex
+#endif
+
+#ifdef HAVE_STRCASECMP
+#define strtrycasecmp strcasecmp
+#else
+#define strtrycasecmp strcmp
+#endif
+
+#ifndef HAVE_OFFSETOF
+#define offsetof(a,b) ((size_t)&((a *)0)->b)
+#endif
+
+#ifndef DONT_NEED_DECLARATIONS
+/*
+ * Handles all of the internationalization configuration options.
+ * Author: Tom Tromey <tromey@creche.cygnus.com>
+ * Stolen from <libgnome/gnome-i18n.h>
+ * Modified by Jan Kratochvil <short@ucw.cz>
+ */
+#ifdef ENABLE_NLS
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+#endif /* HAVE_LIBINTL_H */
+# define _(String) gettext (String)
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else /* ENABLE_NLS */
+/* Stubs that do something close enough. */
+# define textdomain(String) (String)
+# define gettext(String) (String)
+# define dgettext(Domain,Message) (Message)
+# define dcgettext(Domain,Message,Type) (Message)
+# define bindtextdomain(Domain,Directory) (Domain)
+# define _(String) (String)
+# define N_(String) (String)
+#endif /* ENABLE_NLS */
+#endif /* !DONT_NEED_DECLARATIONS */