From 5a586422359d2e3c3e4e35230d2eb12a47b3ce3f Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 25 Oct 2005 18:22:59 +0000 Subject: 2005-10-25 Marcus Brinkmann * src/Makefile.am (arch_sources): New variable. (libgpg_error_la_SOURCES): Add $(arch_sources). * src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h. * src/w32-gettext.h: New file. * src/w32-gettext.c: New file. * src/gpg-error.h.in: Check for gcc's constructor attribute. Use it for gpg_err_init. (GPG_ERR_INITIALIZED): Define if constructor is available. * src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke gpg_err_init. (i18n_init): Call bindtextdomain as well. Now that gpg-error has its own gettext implementation, we can't rely on it anymore. Also, repeat all the w32 stuff for fetching the registry. --- src/gettext.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gettext.h') diff --git a/src/gettext.h b/src/gettext.h index 8b262f4..5adda46 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -22,8 +22,14 @@ /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS +#if HAVE_W32_SYSTEM +/* Redirect the gettext calls to an internal implementation on W32 + targets. */ +# include "w32-gettext.h" +#else /* Get declarations of GNU message catalog functions. */ # include +#endif #else -- cgit v1.2.3