* lib/gettext.h (GNULIB_TEXT_DOMAIN): Remove macro.
* modules/gettext-h (configure.ac): Define it here instead.
+2025-09-13 Bruno Haible <bruno@clisp.org>
+
+ gettext-h: Move fallback definition of GNULIB_TEXT_DOMAIN.
+ * lib/gettext.h (GNULIB_TEXT_DOMAIN): Remove macro.
+ * modules/gettext-h (configure.ac): Define it here instead.
+
2025-09-12 Bruno Haible <bruno@clisp.org>
pagealign_alloc: Improve documentation.
return (n == 1 ? msgid : msgid_plural);
}
-/* The text domainname for Gnulib messages. Ordinarily this is "gnulib",
- but packages that do their own translations of Gnulib can use
- something different by defining GNULIB_TEXT_DOMAIN early. */
-#ifndef GNULIB_TEXT_DOMAIN
-# define GNULIB_TEXT_DOMAIN "gnulib"
-#endif
#endif /* _LIBGETTEXT_H */
configure.ac:
AC_SUBST([LIBINTL])
AC_SUBST([LTLIBINTL])
+AH_BOTTOM([
+/* The text domainname for Gnulib messages. Ordinarily this is "gnulib",
+ but packages that do their own translations of Gnulib can use something
+ different by defining GNULIB_TEXT_DOMAIN in their config.h file. */
+#ifndef GNULIB_TEXT_DOMAIN
+# define GNULIB_TEXT_DOMAIN/**/"gnulib"
+#endif
+])
Makefile.am:
lib_SOURCES += gettext.h