+2005-08-28 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.am (intl/libgnuintl.h_vms, intl/libgnuintl.h.msvc-static,
+ intl/libgnuintl.h.msvc-shared): Remove the IN_LIBGLOCALE conditional.
+
2008-08-28 Bruno Haible <bruno@clisp.org>
* glocale: Remove directory, moved to separate project.
# KEEP_CRTL_SETLOCALE tells it to not override the native locale support.
intl/libgnuintl.h_vms: intl/libgnuintl.h.in
- sed -e 's,@''HAVE_POSIX_PRINTF''@,1,g ' \
+ sed -e '/IN_LIBGLOCALE/d' \
+ -e 's,@''HAVE_POSIX_PRINTF''@,1,g ' \
-e 's,@''HAVE_ASPRINTF''@,0,g' \
-e 's,@''HAVE_SNPRINTF''@,0,g' \
-e 's,@''HAVE_WPRINTF''@,1,g' \
< $(srcdir)/config.h.in > $@
intl/libgnuintl.h.msvc-static: intl/libgnuintl.h.in
- sed -e 's,@''HAVE_POSIX_PRINTF''@,0,g ' \
+ sed -e '/IN_LIBGLOCALE/d' \
+ -e 's,@''HAVE_POSIX_PRINTF''@,0,g ' \
-e 's,@''HAVE_ASPRINTF''@,0,g' \
-e 's,@''HAVE_SNPRINTF''@,0,g' \
-e 's,@''HAVE_WPRINTF''@,1,g' \
< $(srcdir)/intl/libgnuintl.h.in > $@
intl/libgnuintl.h.msvc-shared: intl/libgnuintl.h.in windows/dllexport.h
- sed -e 's,@''HAVE_POSIX_PRINTF''@,0,g ' \
+ sed -e '/IN_LIBGLOCALE/d' \
+ -e 's,@''HAVE_POSIX_PRINTF''@,0,g ' \
-e 's,@''HAVE_ASPRINTF''@,0,g' \
-e 's,@''HAVE_SNPRINTF''@,0,g' \
-e 's,@''HAVE_WPRINTF''@,1,g' \
+2005-08-28 Bruno Haible <bruno@clisp.org>
+
+ * libgnuintl.h.in: Add IN_LIBGLOCALE conditional.
+ * Makefile.in (libgnuintl.h, libintl.h): Remove the IN_LIBGLOCALE
+ conditional.
+ * dcigettext.c [IN_LIBGLOCALE]: Include also <libintl.h>, for
+ bindtextdomain().
+
2005-08-25 Bruno Haible <bruno@clisp.org>
* libintl.glibc: Update from current glibc.
INCLUDES = -I. -I$(srcdir) -I..
libgnuintl.h: $(srcdir)/libgnuintl.h.in
- sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
+ sed -e '/IN_LIBGLOCALE/d' \
+ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
> libgnuintl.h
libintl.h: $(srcdir)/libgnuintl.h.in
- sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
+ sed -e '/IN_LIBGLOCALE/d' \
+ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
#ifdef _LIBC
# include <libintl.h>
#else
+# ifdef IN_LIBGLOCALE
+# include <libintl.h>
+# endif
# include "libgnuintl.h"
#endif
#include "hash-string.h"
#endif
+#ifndef IN_LIBGLOCALE
+
/* Set the current default message catalog to DOMAINNAME.
If DOMAINNAME is null, return the current default.
If DOMAINNAME is "", reset to the default of "messages". */
_INTL_ASM (libintl_bind_textdomain_codeset);
#endif
+#endif /* IN_LIBGLOCALE */
+
/* Support for format strings with positions in *printf(), following the
POSIX/XSI specification.